You are here

function FREQ_options in Date 6.2

Same name and namespace in other branches
  1. 5.2 date_repeat/date_repeat.module \FREQ_options()
  2. 6 date_repeat/date_repeat.module \FREQ_options()
  3. 7 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 54
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' => date_t('Days', 'datetime_plural'),
    'WEEKLY' => date_t('Weeks', 'datetime_plural'),
    'MONTHLY' => date_t('Months', 'datetime_plural'),
    'YEARLY' => date_t('Years', 'datetime_plural'),
  );
}