You are here

function hook_birthdays in Birthdays 7

Executed on birthdays.

Parameters

$entity: The entity the birthday field is attached to. For example the user object.

$instance: The field instance.

1 function implements hook_birthdays()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

birthdays_birthdays in ./birthdays.module
Implements hook_birthdays().
1 invocation of hook_birthdays()
birthdays_cron in ./birthdays.module
Implements hook_cron().

File

./birthdays.api.php, line 22
Hooks provided by the Birthdays module.

Code

function hook_birthdays($entity, $instance) {
  if (isset($entity->name)) {
    watchdog('birthdays', "It's %name's birthday.", array(
      '%name' => $entity->name,
    ));
  }
}