function img_assist_init in Image Assist 6
Same name and namespace in other branches
- 6.2 img_assist.module \img_assist_init()
Implementation of hook_init().
File
- ./
img_assist.module, line 120 - Image Assist module
Code
function img_assist_init() {
$path = drupal_get_path('module', 'img_assist');
if (variable_get('img_assist_page_styling', 'yes') == 'yes') {
drupal_add_css($path . '/img_assist.css');
}
// Assign base_path to insert in image source by javascript.
drupal_add_js('var BASE_URL = "' . base_path() . '";', 'inline');
drupal_add_js($path . '/img_assist.js');
}