You are here

function rules_ui_element_duration_multipliers in Rules 7.2

Defines possible duration multiplier.

1 call to rules_ui_element_duration_multipliers()
rules_ui_element_duration_process in ui/ui.forms.inc
FAPI process callback for the duration element type.

File

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

Code

function rules_ui_element_duration_multipliers() {
  return array(
    1 => t('seconds'),
    60 => t('minutes'),
    3600 => t('hours'),
    // Just use approximate numbers for days (might last 23h on DST change),
    // months and years.
    86400 => t('days'),
    86400 * 30 => t('months'),
    86400 * 30 * 12 => t('years'),
  );
}