function notifications_destination_request_form in Notifications 6.4
Form to request a message with a link to manage destination's subscriptions
1 string reference to 'notifications_destination_request_form'
- notifications_page_unsubscribe_overview in ./
notifications.pages.inc - Display unsubscribe options for this page
File
- includes/
destination.inc, line 411 - Destination management
Code
function notifications_destination_request_form($form_state, $account, $send_methods) {
$help[] = t('Please, enter the address on which you are receiving the notifications from this site.');
$help[] = t('You will get a message on that address with a link to cancel all your subscriptions.');
if (!$account->uid) {
$help[] = t('Optionally, you can <a href="@user-login">log into this site</a> with your user account to manage your subscriptions.', array(
'@user-login' => url('user/login'),
));
}
$form['help']['#value'] = '<p>' . implode('</p><p>', $help) . '</p>';
$form['account'] = array(
'#type' => 'value',
'#value' => $account,
);
// And we don't pass an account here because we don't want address validated for it
$form['send_method'] = notifications_destination_address_subform(NULL, NULL, $send_methods);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Unsubscribe'),
);
return $form;
}