function geshifilter_menu in GeSHi Filter for syntax highlighting 6
Same name and namespace in other branches
- 5.2 geshifilter.module \geshifilter_menu()
- 5 geshifilter.module \geshifilter_menu()
- 7 geshifilter.module \geshifilter_menu()
Implementation of hook_menu().
File
- ./
geshifilter.module, line 77 - An input filter for syntax highlighting using the GeSHi library.
Code
function geshifilter_menu() {
$items = array();
$items['admin/settings/geshifilter'] = array(
'title' => 'GeSHi Filter',
'description' => 'Configure the GeSHi filter.',
'file' => 'geshifilter.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'geshifilter_admin_general_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/geshifilter/general'] = array(
'title' => 'General settings',
'description' => 'General GeSHi filter settings.',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/geshifilter/filterconflicts'] = array(
'title' => 'Filter conflicts',
'description' => 'Information on possible conflicts with other filters.',
'file' => 'geshifilter.conflicts.inc',
'page callback' => 'geshifilter_admin_filter_conflicts',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
// language settings
$items['admin/settings/geshifilter/languages'] = array(
'title' => 'Languages',
'description' => 'Enable the desired languages and configure their settings.',
'file' => 'geshifilter.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'geshifilter_admin_per_language_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/geshifilter/languages/enabled'] = array(
'title' => 'Enabled',
'description' => 'Show the enabled languages',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 3,
);
$items['admin/settings/geshifilter/languages/all'] = array(
'title' => 'All',
'description' => 'Show all the available languages',
'page arguments' => array(
'geshifilter_admin_per_language_settings',
4,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/settings/geshifilter/languages/disabled'] = array(
'title' => 'Disabled',
'description' => 'Show the disabled languages',
'page arguments' => array(
'geshifilter_admin_per_language_settings',
4,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 6,
);
// Callback for generating CSS rules.
$items['admin/settings/geshifilter/generate_css'] = array(
'page callback' => 'geshifilter_generate_language_css_rules',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
return $items;
}