You are here

function FREQ_options in Date 7

Same name and namespace in other branches
  1. 5.2 date_repeat/date_repeat.module \FREQ_options()
  2. 6.2 date_repeat/date_repeat.module \FREQ_options()
  3. 6 date_repeat/date_repeat.module \FREQ_options()

Helper function for FREQ options.

1 call to FREQ_options()
_date_repeat_rrule_process in date_repeat/date_repeat_form.inc
Generate the repeat setting form.

File

date_repeat/date_repeat.module, line 50
This module creates a form element that allows users to select repeat rules for a date, and reworks the result into an iCal RRULE string that can be stored in the database.

Code

function FREQ_options() {
  return array(
    'NONE' => t('-- Period'),
    'DAILY' => t('Days', array(), array(
      'context' => 'datetime_plural',
    )),
    'WEEKLY' => t('Weeks', array(), array(
      'context' => 'datetime_plural',
    )),
    'MONTHLY' => t('Months', array(), array(
      'context' => 'datetime_plural',
    )),
    'YEARLY' => t('Years', array(), array(
      'context' => 'datetime_plural',
    )),
  );
}