You are here

function rb_misc_action_get_time_form in Rules Bonus Pack 6

Configuration form for 'rb_misc_action_get_time'.

File

./rb_misc.module, line 257
Miscellaneous conditions and actions for Rules.

Code

function rb_misc_action_get_time_form($settings, &$form) {
  $form['settings']['format'] = array(
    '#type' => 'textfield',
    '#default_value' => $settings['format'],
    '#title' => t('Time format'),
    '#description' => t('A format for the time, as defined by the !PHP-date
      function. Could be \'Y-m-d\'.', array(
      '!PHP-date' => l('PHP date', 'http://php.net/manual/en/function.date.php'),
    )),
  );
  $form['settings']['utc'] = array(
    '#type' => 'checkbox',
    '#default_value' => $settings['utc'],
    '#title' => t('Get UTC time'),
    '#description' => t('Setting this will give you Coordinated Universal Time,
      ignoring any timezone settings.'),
  );
}