function notifications_ui_nodeapi in Notifications 6
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.module \notifications_ui_nodeapi()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_nodeapi()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_nodeapi()
- 7 notifications_ui/notifications_ui.module \notifications_ui_nodeapi()
Display a button + js overlay
From http://groups.drupal.org/node/17779
File
- notifications_ui/
notifications_ui.module, line 379 - User Interface for subscriptions modules
Code
function notifications_ui_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
global $user;
if ($op == 'alter' && notifications_ui_node_options($node->type, 'subform')) {
if ($options = notifications_ui_user_node($user, $node)) {
$node->body .= drupal_get_form('notifications_ui_options_form', $options, TRUE, TRUE);
}
}
}