function _birthdays_instance_hook in Birthdays 7
Gets a hook name that is unique for a field instance.
Parameters
$i: The field instance.
Return value
birthdays_{uuid}, maximum length is 32 characters.
2 calls to _birthdays_instance_hook()
- birthdays_birthdays in ./
birthdays.module - Implements hook_birthdays().
- birthdays_trigger_info in ./
birthdays.module - Implements hook_trigger_info().
File
- ./
birthdays.module, line 929 - 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_instance_hook($i) {
$hook = 'birthdays_' . sha1($i['entity_type'] . '|' . $i['bundle'] . '|' . $i['field_name']);
return drupal_substr($hook, 0, 32);
}