function bundle_copy_bundle_copy_info in Bundle Copy 7.2
Same name and namespace in other branches
- 7 bundle_copy.module \bundle_copy_bundle_copy_info()
Implements hook_bundle_copy_info().
File
- ./
bundle_copy.module, line 24 - Bundle copy.
Code
function bundle_copy_bundle_copy_info() {
$info = array();
$info['node'] = array(
'bundle_export_callback' => 'node_type_get_type',
'bundle_save_callback' => 'node_type_save',
'bundle_clone_name_validate' => 'node_type_load',
'bundle_name_validate' => 'node_type_load',
'export_menu' => array(
'path' => 'admin/structure/types/export',
'access arguments' => 'administer content types',
),
'import_menu' => array(
'path' => 'admin/structure/types/import',
'access arguments' => 'administer content types',
),
'clone_menu' => array(
'path' => 'admin/structure/types/clone',
'access arguments' => 'administer content types',
),
);
$info['user'] = array(
'bundle_export_callback' => '_bc_bundle_export_ignore',
'bundle_save_callback' => '_bc_bundle_save_ignore',
'bundle_name_validate' => '',
'export_menu' => array(
'path' => 'admin/config/people/accounts/export',
'access arguments' => 'administer users',
),
'import_menu' => array(
'path' => 'admin/config/people/accounts/import',
'access arguments' => 'administer users',
),
);
if (module_exists('taxonomy')) {
$info['taxonomy_term'] = array(
'bundle_export_callback' => '_bc_copy_taxonomy_load',
'bundle_save_callback' => '_bc_copy_taxonomy_save',
'bundle_name_validate' => 'taxonomy_vocabulary_machine_name_load',
'export_menu' => array(
'path' => 'admin/structure/taxonomy/export',
'access arguments' => 'administer taxonomy',
),
'import_menu' => array(
'path' => 'admin/structure/taxonomy/import',
'access arguments' => 'administer taxonomy',
),
);
}
return $info;
}