You are here

function img_assist_init in Image Assist 6.2

Same name and namespace in other branches
  1. 6 img_assist.module \img_assist_init()

Implementation of hook_init().

File

./img_assist.module, line 115
Image Assist module

Code

function img_assist_init() {
  $path = drupal_get_path('module', 'img_assist');
  if (arg(0) == 'img_assist') {

    // Suppress Administration menu.
    module_invoke('admin_menu', 'suppress');
    drupal_add_css($path . '/img_assist_popup.css', 'module', 'all', FALSE);
  }
  else {
    drupal_add_js($path . '/img_assist.js');
    if (variable_get('img_assist_page_styling', 'yes') == 'yes') {
      drupal_add_css($path . '/img_assist.css');
    }
  }
}