function ckeditor_responsive_plugin_page_build in CKEditor Responsive Plugin 7
Add the basepath to the Drupal.settings js object. Implements hook_page_build().
Parameters
array $page: Page array.
File
- ./
ckeditor_responsive_plugin.module, line 14 - Hooks implementations.
Code
function ckeditor_responsive_plugin_page_build(array &$page) {
$module_base_path = url(drupal_get_path('module', 'ckeditor_responsive_plugin'), array(
'absolute' => true,
));
$my_settings = array(
'basePath' => $module_base_path,
);
drupal_add_js(array(
'ckeditor_responsive_plugin' => $my_settings,
), 'setting');
}