function notifications_subscriptions_options_form in Notifications 7
Same name and namespace in other branches
- 6.4 notifications.module \notifications_subscriptions_options_form()
Form with multiple subscription options
File
- notifications_account/
notifications_account.module, line 193 - Notifications module - User subscriptions tabs
Code
function notifications_subscriptions_options_form($form_state, $subscriptions, $account = NULL, $destination = NULL, $length = 40) {
$account = $account ? $account : $GLOBALS['user'];
notifications_include('object.inc');
$form = notifications_object_options_form($form_state, $subscriptions);
// If anonymous account, add destination subform
if (!$account->uid) {
$form = notifications_subscription_destination_subform($form, $account, $destination = NULL, NULL, $length);
}
return $form;
}