function block_edit_init in Block edit 6
Same name and namespace in other branches
- 5 block_edit.module \block_edit_init()
Implementation of hook_init().
File
- ./
block_edit.module, line 43 - Adds edit links to blocks and nodes to make administration more intuitive.
Code
function block_edit_init() {
if (function_exists('drupal_get_path')) {
$path = drupal_get_path('module', 'block_edit');
drupal_add_js($path . '/block_edit.js', 'module', 'header', FALSE, TRUE, FALSE);
drupal_add_css($path . '/block_edit.css', 'module', 'all', FALSE);
}
drupal_add_js(array(
'block_edit' => array(
'hover_links' => variable_get('block_edit_hover_links', 1),
),
), 'setting');
}