You are here

function eck_bundle_copy_info in Entity Construction Kit (ECK) 7.2

Implements hook_bundle_copy_info().

File

./eck.module, line 994

Code

function eck_bundle_copy_info() {
  $entity_info = array();
  foreach (EntityType::loadAll() as $k => $entity_type) {
    $entity_info[$k] = array(
      'bundle_export_callback' => 'eck_bundle_copy_get_type',
      'bundle_save_callback' => 'eck_bundle_copy_save',
      'export_menu' => array(
        'path' => "admin/structure/entity-type/{$k}/export",
        'access arguments' => "manage {$k} properties",
      ),
      'import_menu' => array(
        'path' => "admin/structure/entity-type/{$k}/import",
        'access arguments' => "manage {$k} properties",
      ),
    );
  }
  return $entity_info;
}