You are here

function date_repeat_elements in Date 6

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

Implementation of hook_elements().

File

date_repeat/date_repeat.module, line 19
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 date_repeat_elements() {
  $type['date_repeat_rrule'] = array(
    '#input' => TRUE,
    '#process' => array(
      'date_repeat_rrule_process',
    ),
    '#element_validate' => array(
      'date_repeat_rrule_validate',
    ),
  );
  return $type;
}