You are here

function birthdays_field_info in Birthdays 7

Implements hook_field_info().

File

./birthdays.module, line 307
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_info() {
  return array(
    'birthdays_date' => array(
      'label' => t('Birthday'),
      'description' => t('This field stores a birthday in the database.'),
      'default_widget' => 'birthdays_date',
      'default_formatter' => 'birthdays_plaintext',
      'instance_settings' => array(
        'admin_mail' => BIRTHDAYS_ADMIN_MAIL_DISABLED,
        'hide_year' => BIRTHDAYS_HIDE_YEAR_NO,
        'triggers' => array(
          'user' => FALSE,
          'title' => t('Fire triggers on birthdays'),
          'description' => '',
        ),
      ),
      // Support hook_entity_property_info() from contrib "Entity API".
      'property_type' => 'field_birthdays',
      'property_callbacks' => array(
        'birthdays_field_item_property_info_callback',
      ),
    ),
  );
}