You are here

function _birthdays_show_date in Birthdays 6

Same name and namespace in other branches
  1. 5 birthdays.module \_birthdays_show_date()

Format date array

4 calls to _birthdays_show_date()
birthdays_mail in ./birthdays.mail.inc
Implementation of hook_mail().
birthdays_profile_alter in ./birthdays.module
Alter the way the birthday is shown. This is fired after every module has filled the profile.
template_preprocess_birthdays_block in ./birthdays.module
Preprocess variables to format the birthdays block.
template_preprocess_birthdays_page in ./birthdays.page.inc
Preprocess variables to format the birthdays page.

File

./birthdays.module, line 998
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 e-mail on their birthday automatically, and the administrator can receive daily reminders of…

Code

function _birthdays_show_date($date, $account, $format = 'small') {
  if (is_array($date)) {

    // Extract date
    extract($date);

    // Call main format function
    return _birthdays_show_date_2($day, $month, $year, $account, $format);
  }
  else {
    return NULL;
  }
}