function notifications_notifications in Notifications 7
Same name and namespace in other branches
- 5 notifications.module \notifications_notifications()
- 6.4 notifications.module \notifications_notifications()
- 6 notifications.module \notifications_notifications()
- 6.2 notifications.module \notifications_notifications()
- 6.3 notifications.module \notifications_notifications()
Implementation of hook_notifications()
File
- ./
notifications.module, line 469 - Notifications module
Code
function notifications_notifications($op) {
switch ($op) {
case 'object types':
$types['node'] = array(
'title' => t('Node'),
'class' => 'Notifications_Node',
);
$types['user'] = array(
'title' => t('User'),
'class' => 'Notifications_User',
);
return $types;
case 'field types':
// Information about available fields for subscriptions
$fields['node:nid'] = array(
'title' => t('Node'),
'class' => 'Notifications_Node_Field',
);
$fields['user:uid'] = array(
'title' => t('User'),
'class' => 'Notifications_User_Field',
);
return $fields;
}
}