Implements hook_install().
function menu_install() {
$system_menus = menu_list_system_menus();
$t = get_t();
$descriptions = array(
'tools' => $t('Contains links for site visitors. Some modules add their links here.'),
'account' => $t('Links related to the user account.'),
'admin' => $t('Contains links to administrative tasks.'),
'main' => $t('Use this for linking to the main site sections.'),
'footer' => $t('Use this for linking to site information.'),
);
foreach ($system_menus as $menu_name => $title) {
$menu = array(
'menu_name' => $menu_name,
'title' => $t($title),
'description' => $descriptions[$menu_name],
);
menu_save($menu);
}
}