You are here

function farm_asset_entity_info_alter in farmOS 7

Implements hook_entity_info_alter().

File

modules/farm/farm_asset/farm_asset.module, line 222
Farm asset - A farm asset entity type.

Code

function farm_asset_entity_info_alter(&$entity_info) {
  foreach (farm_asset_types() as $type => $info) {
    $entity_info['farm_asset']['bundles'][$type] = array(
      'label' => $info->label,
      'admin' => array(
        'path' => 'admin/config/farm/asset-types/manage/%farm_asset_type',
        'real path' => 'admin/config/farm/asset-types/manage/' . $type,
        'bundle argument' => 5,
      ),
    );
  }
}