function notifications_ui_node_subform in Notifications 6
Same name and namespace in other branches
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_node_subform()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_node_subform()
Form for node subscriptions @ TODO: offer the same form in a block to be put in the contents region.
Parameters
$node: a node object
Return value
Partial subscription form, just missing submit button.
1 call to notifications_ui_node_subform()
- notifications_ui_form_alter in notifications_ui/
notifications_ui.module - Implementation of hook_form_alter()
File
- notifications_ui/
notifications_ui.module, line 287 - User Interface for subscriptions modules
Code
function notifications_ui_node_subform($node) {
global $user;
// Retrieve node options if not passed
$node_options = notifications_ui_user_node($user, $node);
$subform = notifications_ui_options_form(NULL, $node_options, TRUE, FALSE);
return $subform;
}