You are here

function birthdays_element_info in Birthdays 7

Implements hook_element_info().

File

./birthdays.module, line 86
The Birthdays module allows users to add their birthday to their profile. It lists birthdays on a seperate page and in different blocks. Users can receive an email on their birthday automatically, and the administrator can receive daily reminders of…

Code

function birthdays_element_info() {
  $types['birthdays_date'] = array(
    '#input' => TRUE,
    '#element_validate' => array(
      'birthdays_validate_date',
      'birthdays_validate_date_complete',
    ),
    '#process' => array(
      'birthdays_process_date',
    ),
    '#theme' => 'birthdays_date',
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
  return $types;
}