You are here

function birthdays_field_widget_info in Birthdays 7

Implements hook_field_widget_info().

File

./birthdays.module, line 543
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_field_widget_info() {
  $widgets['birthdays_date'] = array(
    'label' => t('Select boxes'),
    'field types' => array(
      'birthdays_date',
    ),
  );
  if (function_exists('date_parse_from_format')) {
    $widgets['birthdays_textfield'] = array(
      'label' => t('Textfield'),
      'field types' => array(
        'birthdays_date',
      ),
      'settings' => array(
        'dateformat' => 'Y/m/d',
        'datepicker' => FALSE,
      ),
    );
  }
  return $widgets;
}