function content_copy_menu in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/content_copy/content_copy.module \content_copy_menu()
- 6 modules/content_copy/content_copy.module \content_copy_menu()
- 6.2 modules/content_copy/content_copy.module \content_copy_menu()
Implementation of hook_menu().
File
- ./
content_copy.module, line 33 - Adds capability to import/export cck field data definitions.
Code
function content_copy_menu($may_cache) {
$items = array();
$access = user_access('administer content types');
if ($may_cache) {
$items[] = array(
'path' => 'admin/content/types/export',
'title' => t('Export'),
'callback' => 'drupal_get_form',
'callback arguments' => 'content_copy_export_form',
'access' => $access,
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
$items[] = array(
'path' => 'admin/content/types/import',
'title' => t('Import'),
'callback' => 'drupal_get_form',
'callback arguments' => 'content_copy_import_form',
'access' => $access,
'type' => MENU_LOCAL_TASK,
'weight' => 4,
);
}
return $items;
}