You are here

function theme_birthdays_date in Birthdays 7

Returns HTML for a birthdays_date element.

Parameters

$variables: An associative array containing:

  • element: The element to be themed.
1 theme call to theme_birthdays_date()
birthdays_element_info in ./birthdays.module
Implements hook_element_info().

File

./birthdays.module, line 283
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 theme_birthdays_date($variables) {
  $element = $variables['element'];
  $attributes = array();
  if (isset($element['#id'])) {
    $attributes['id'] = $element['#id'];
  }
  if (!empty($element['#attributes']['class'])) {
    $attributes['class'] = (array) $element['#attributes']['class'];
  }
  $attributes['class'][] = 'container-inline';
  $triggers = array();
  if (isset($element['triggers'])) {
    $triggers = $element['triggers'];
    unset($element['triggers']);
  }
  return '<div' . drupal_attributes($attributes) . '>' . drupal_render_children($element) . '</div>' . drupal_render($triggers);
}