You are here

function rules_ui_element_duration_value in Rules 7.2

Helper function a rules duration form element.

Determines the value for a rules duration form element.

1 string reference to 'rules_ui_element_duration_value'
rules_element_info in ./rules.module
Implements hook_element_info().

File

ui/ui.forms.inc, line 812
Rules User Interface forms.

Code

function rules_ui_element_duration_value($element, $input = FALSE) {

  // This runs before child elements are processed, so we cannot calculate the
  // value here. But we have to make sure the value is an array, so the form
  // API is able to process the children to set their values in the array. Thus
  // once the form API has finished processing the element, the value is an
  // array containing the child element values. Then finally the after build
  // callback converts it back to the numeric value and sets that.
  return array();
}