function bundle_copy_bundle_copy_info in Bundle Copy 7
Same name and namespace in other branches
- 7.2 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',
'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',
),
);
$info['user'] = array(
'bundle_export_callback' => '_bc_bundle_export_ignore',
'bundle_save_callback' => '_bc_bundle_save_ignore',
'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',
'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;
}