You are here

function geshifilter_menu in GeSHi Filter for syntax highlighting 5

Same name and namespace in other branches
  1. 5.2 geshifilter.module \geshifilter_menu()
  2. 6 geshifilter.module \geshifilter_menu()
  3. 7 geshifilter.module \geshifilter_menu()

Implementation of hook_menu()

File

./geshifilter.module, line 20

Code

function geshifilter_menu($may_cache) {
  if (!$may_cache) {
    drupal_add_css(drupal_get_path('module', 'geshifilter') . '/geshifilter.css');
    drupal_add_css(drupal_get_path('module', 'geshifilter') . '/geshi.css');
  }
  else {
    $items[] = array(
      'path' => 'admin/settings/geshifilter',
      'title' => t('GeSHi filter'),
      'description' => t('Configure the general GeSHi filter settings.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'geshifilter_admin_settings_form',
      ),
      'access' => user_access('administer filters'),
      'type' => MENU_NORMAL_ITEM,
    );
    return $items;
  }
}