Use "use PHP for settings" as an extra permission.
[project/bundle_copy.git] / bundle_copy.api.php
1 <?php
2
3 /**
4 * @file
5 * Hooks provided by Bundle copy.
6 */
7
8 /**
9 * @addtogroup hooks
10 * @{
11 */
12
13 /**
14 * Implements hook_bundle_copy_info().
15 *
16 * Return info for bundle copy. The first key is
17 * the name of the entity_type.
18 */
19 function hook_bundle_copy_info() {
20 return array(
21 'node' => array(
22 'bundle_export_callback' => 'node_type_get_type',
23 'bundle_save_callback' => 'node_type_save',
24 'export_menu' => array(
25 'path' => 'admin/structure/types/export',
26 'access arguments' => 'administer content types',
27 ),
28 'import_menu' => array(
29 'path' => 'admin/structure/types/import',
30 'access arguments' => 'administer content types',
31 ),
32 ),
33 );
34 }
35
36 /**
37 * @} End of "addtogroup hooks".
38 */