function farm_plan_consideration_create in farmOS 7
Create a new consideration.
Parameters
string $type: The consideration type machine name.
string $name: The consideration name.
int $start_time: The start timestamp of the consideration.
int $end_time: The end timestamp of the consideration.
int $plan_id: The ID of the plan this consideration is linked to (optional).
Return value
object Returns an empty consideration object.
1 call to farm_plan_consideration_create()
- farm_plan_consideration_form in modules/farm/ farm_plan/ farm_plan_consideration/ farm_plan_consideration.module 
- Build the farm plan considerations form.
File
- modules/farm/ farm_plan/ farm_plan_consideration/ farm_plan_consideration.module, line 111 
- Farm plan consideration module.
Code
function farm_plan_consideration_create($type = 'concern', $name = '', $start_time = 0, $end_time = 0, $plan_id = NULL) {
  $consideration = new stdClass();
  $consideration->id = NULL;
  $consideration->type = $type;
  $consideration->name = $name;
  $consideration->plan_id = $plan_id;
  $consideration->start_time = $start_time;
  $consideration->end_time = $end_time;
  $consideration->entities = array();
  return $consideration;
}