function smileys_import_menu in Smileys 5
Same name and namespace in other branches
- 6 smileys_import.module \smileys_import_menu()
Implementation of hook_menu().
File
- ./
smileys_import.module, line 16
Code
function smileys_import_menu($may_cache) {
$items = array();
if ($may_cache) {
$access = user_access('administer smileys');
$items[] = array(
'path' => 'admin/settings/smileys/import',
'title' => t('Import'),
'callback' => 'smileys_import_page',
'access' => $access,
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/settings/smileys/export',
'title' => t('Export'),
'callback' => 'smileys_export_page',
'access' => $access,
'weight' => 3,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/settings/smileys/import/add',
'callback' => 'smileys_import_add',
'access' => $access,
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/smileys/import/delete',
'callback' => 'smileys_import_delete',
'access' => $access,
'type' => MENU_CALLBACK,
);
}
return $items;
}