You are here

function block_edit_init in Block edit 5

Same name and namespace in other branches
  1. 6 block_edit.module \block_edit_init()

File

./block_edit.module, line 13

Code

function block_edit_init() {
  if (function_exists('user_access') || user_access('administer blocks')) {
    if (function_exists('drupal_get_path')) {
      $mpath = drupal_get_path('module', 'block_edit');
      drupal_add_js($mpath . '/block_edit.js');
      drupal_add_css($mpath . '/block_edit.css');
    }
  }
}