summaryrefslogtreecommitdiffstats
path: root/bundle_copy.api.php
blob: 807e83c911fcb04f287c988758268185d68b39af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php

/**
 * @file
 * Hooks provided by Bundle copy.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Implements hook_bundle_copy_info().
 *
 * Return info for bundle copy. The first key is
 * the name of the entity_type.
 */
function hook_bundle_copy_info() {
  return array(
    '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',
      ),
    ),
  );
}

/**
 * @} End of "addtogroup hooks".
 */