You are here

function farm_log_asset_action_submit in farmOS 7

Submit handler for farm_log_asset_action configuration form.

Parameters

array $form: The form array.

array $form_state: The form state array.

Return value

array Returns an array that will end up in the action's context.

File

modules/farm/farm_log/farm_log.module, line 144
Code for the Farm Log feature.

Code

function farm_log_asset_action_submit(array $form, array $form_state) {

  // Start to build the context array.
  $context = array();

  // Add the log type to the context.
  $context['log_type'] = $form_state['values']['log_type'];

  // Return the context array.
  return $context;
}