function translation_overview_menu in Translation Overview 6
Same name and namespace in other branches
- 6.2 translation_overview.module \translation_overview_menu()
Implementation of hook_menu().
File
- ./
translation_overview.module, line 21
Code
function translation_overview_menu() {
$items = array();
$items['admin/content/translation_overview'] = array(
'title' => 'Translation overview',
'type' => MENU_NORMAL_ITEM,
'description' => "View the translation status of the site's content.",
'page callback' => 'translation_overview_overview_page',
'file' => 'translation_overview.pages.inc',
'access arguments' => array(
'translate content',
),
);
$items['admin/content/translation_overview/all'] = array(
'title' => 'All',
'description' => 'All translations',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
'access arguments' => array(
'translate content',
),
);
foreach (language_list() as $key => $language) {
if ($language->enabled) {
$items['admin/content/translation_overview/' . $language->language] = array(
'title' => $language->language,
'description' => $language->name,
'type' => MENU_LOCAL_TASK,
'page callback' => 'translation_overview_language_page',
'page arguments' => array(
$language->language,
),
'file' => 'translation_overview.pages.inc',
'access arguments' => array(
'translate content',
),
);
}
}
return $items;
}