You are here

function node_registration_init in Node registration 7

Implements hook_init().

File

./node_registration.module, line 203

Code

function node_registration_init() {
  $module_path = _node_registration_type_to_uri('node_registration');
  if ('admin' == arg(0) || preg_match('#^node/\\d+/' . $module_path . '#', $_GET['q'])) {
    drupal_add_css(drupal_get_path('module', 'node_registration') . '/node_registration.admin.css');
    drupal_add_js(drupal_get_path('module', 'node_registration') . '/node_registration.admin.js');
  }
}