Browse Source

added init functions to load admin css for each module

pull/122/merge
Paul Pound 13 years ago
parent
commit
539e99bb71
  1. 6
      islandora.module
  2. 6
      islandora_basic_collection/islandora_basic_collection.module
  3. 6
      islandora_basic_image/islandora_basic_image.module

6
islandora.module

@ -351,6 +351,12 @@ function islandora_get_types() {
return module_invoke_all('islandora_get_types');
}
function islandora_init() {
if (path_is_admin(current_path())) {
drupal_add_css(drupal_get_path('module', 'islandora') . '/css/islandora.admin.css');
}
}
/**
* a function to call other modules edit page. If there are not any modules
* that handle this function this module will build a default page.

6
islandora_basic_collection/islandora_basic_collection.module

@ -61,6 +61,12 @@ function islandora_basic_collection_menu() {
return $items;
}
function islandora_basic_collection_init() {
if (path_is_admin(current_path())) {
drupal_add_css(drupal_get_path('module', 'islandora_basic_collection') . '/css/islandora_basic_collection.admin.css');
}
}
/**
* Implements hook_menu_local_tasks_alter().
*/

6
islandora_basic_image/islandora_basic_image.module

@ -132,6 +132,12 @@ function islandora_basic_image_access($object_id) {
return FALSE;
}
function islandora_basic_image_init() {
if (path_is_admin(current_path())) {
drupal_add_css(drupal_get_path('module', 'islandora_basic_image') . '/css/islandora_basic_image.admin.css');
}
}
/**
* Theme registry function
* We supply a pattern so we can overide templates at the theme level if needed.

Loading…
Cancel
Save