'.t("Adds icons to the admin areas").'
'; break; } return $output; } function iconify_menu(){ drupal_add_css(drupal_get_path('module', 'iconify') .'/iconify.css'); } /** * get the original english title for the icons * check the DB if we use localization. */ function iconofy_get_orig_title($title){ //get the original title if we use localization if(module_exists(Locale)){ $sql ="SELECT s.source FROM locales_target t JOIN locales_source s ON t.lid = s.lid WHERE translation ='%s' "; $result = db_query($sql,$title); $title = db_result($result, $row = 0); }else{ $title = $title; } //rename the title $title=strtolower(str_replace(' ','_',$title)); $icon=strtolower(str_replace('\'','',$title)); return $icon; } /** * theming */ function phptemplate_fieldset($element) { // drupal_add_css(drupal_get_path('module', 'iconify') .'/iconify.css'); if ($element['#collapsible']) { drupal_add_js('misc/collapse.js'); $element['#attributes']['class'] .= ' collapsible'; if ($element['#collapsed']) { $element['#attributes']['class'] .= ' collapsed'; } } $icon = iconofy_get_orig_title($element['#title']); return '
\n"; } function phptemplate_admin_block_content($content) { if (!$content) { return ''; } if (system_admin_compact_mode()) { $output = ' '; } else { $output = '$block[description]
$block[content]