Index: checklist.module =================================================================== --- checklist.module (revision 115) +++ checklist.module (working copy) @@ -69,11 +69,6 @@ 'callback' => 'checklist_administer_list', 'type' => MENU_LOCAL_TASK ); - foreach (file_scan_directory('./modules', 'checklist.css') as $css) { - if (is_readable($css->filename)) { - variable_set('checklist_css', $css->filename); - } - } } else { if(is_numeric(arg(2))) { @@ -123,9 +118,7 @@ } } } - if ($css = variable_get('checklist_css', '')) { - drupal_set_html_head("\n\n"); - } + theme_add_style(drupal_get_path('module', 'checklist') .'/checklist.css'); } return $items;