You are here

function farm_plan_entity_info_alter in farmOS 7

Implements hook_entity_info_alter().

File

modules/farm/farm_plan/farm_plan.module, line 226
Farm plan - A farm plan entity type.

Code

function farm_plan_entity_info_alter(&$entity_info) {
  foreach (farm_plan_types() as $type => $info) {
    $entity_info['farm_plan']['bundles'][$type] = array(
      'label' => $info->label,
      'admin' => array(
        'path' => 'admin/config/farm/plan-types/manage/%farm_plan_type',
        'real path' => 'admin/config/farm/plan-types/manage/' . $type,
        'bundle argument' => 5,
      ),
    );
  }
}