ExpressionEngine® User Guide

Legacy Documentation

You are using the documentation for version 4.3.8. Go here for the latest version.

Javascript Controller Extension Hooks

cp_js_end

cp_js_end()

Allows you add javascript to every Control Panel page.

How it’s called:

$str = $this->extensions->call('cp_js_end');
Returns:Javascript to add to the end of the control panel
Return type:String

New in version 2.1.2.