function notifications_custom_notifications in Notifications 6
Same name and namespace in other branches
- 6.4 notifications_custom/notifications_custom.module \notifications_custom_notifications()
Implementatin of hook_notifications()
File
- notifications_custom/
notifications_custom.module, line 104 - Custom notifications module
Code
function notifications_custom_notifications($op) {
switch ($op) {
case 'subscription types':
if ($custom = notifications_custom_list()) {
foreach ($custom as $subs) {
$types[$subs->type] = array(
'event_type' => $subs->event_type,
'title' => check_plain($subs->name),
'custom' => TRUE,
'fields' => array(),
);
foreach ($subs->fields as $field) {
$types[$subs->type]['fields'][] = $field['type'];
}
}
return $types;
}
break;
}
}