You are here

function notifications_ui_node_subform in Notifications 6.3

Same name and namespace in other branches
  1. 6 notifications_ui/notifications_ui.module \notifications_ui_node_subform()
  2. 6.2 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 302
User Interface for subscriptions modules

Code

function notifications_ui_node_subform($node) {
  global $user;

  // Retrieve node options if not passed
  $node_options = notifications_ui_subscribe_options($user, 'node', $node);
  $subform = notifications_ui_options_form(NULL, $node_options, TRUE, FALSE);
  return $subform;
}