bundle_copy.api.php 753 B

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