You are here

function notifications_ui_account_subform in Notifications 6.3

Same name and namespace in other branches
  1. 6 notifications_ui/notifications_ui.module \notifications_ui_account_subform()
  2. 6.2 notifications_ui/notifications_ui.module \notifications_ui_account_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.

File

notifications_ui/notifications_ui.module, line 631
User Interface for subscriptions modules

Code

function notifications_ui_account_subform($author, $options) {
  global $user;

  // Retrieve node options if not passed
  $options = notifications_ui_user_account($user, $author);
  $subform = notifications_ui_options_form(NULL, $options, TRUE, TRUE);
  return $subform;
}