function farm_plan_load in farmOS 7
Load a plan.
Parameters
int $id: The plan id.
bool $reset: Whether or not to reset the entity cache.
Return value
FarmPlan Returns a farm plan object.
3 calls to farm_plan_load()
- farm_plan_consideration_list in modules/
farm/ farm_plan/ farm_plan_consideration/ farm_plan_consideration.module - Page callback for considerations list, filtered for a plan.
- farm_plan_entity_view_alter in modules/
farm/ farm_plan/ farm_plan.module - Implements hook_entity_view_alter().
- farm_plan_plugin_argument_validate_farm_plan::validate_argument in modules/
farm/ farm_plan/ views/ plugins/ farm_plan_plugin_argument_validate_farm_plan.inc
1 string reference to 'farm_plan_load'
- farm_plan_entity_info in modules/
farm/ farm_plan/ farm_plan.module - Implements hook_entity_info().
File
- modules/
farm/ farm_plan/ farm_plan.module, line 566 - Farm plan - A farm plan entity type.
Code
function farm_plan_load($id, $reset = FALSE) {
$farm_plans = farm_plan_load_multiple(array(
$id,
), array(), $reset);
return reset($farm_plans);
}