You are here

function simplemeta_init in Simple Meta 7

Same name and namespace in other branches
  1. 6.2 simplemeta.module \simplemeta_init()

Implements hook_init().

File

./simplemeta.module, line 11
SimpleMeta module.

Code

function simplemeta_init() {
  if (variable_get('simplemeta_form_enable', TRUE) && user_access('administer simplemeta') && !path_is_admin(current_path())) {
    $modulepath = drupal_get_path('module', 'simplemeta');
    drupal_add_css($modulepath . '/css/simplemeta.css', array(
      'preprocess' => FALSE,
    ));
    drupal_add_js($modulepath . '/js/simplemeta.js', array(
      'preprocess' => FALSE,
    ));
  }
}