function subscriptions_suspended in Subscriptions 6
Same name and namespace in other branches
- 7 subscriptions.module \subscriptions_suspended()
- 2.0.x subscriptions.module.old.php \subscriptions_suspended()
Returns whether notifications are suspended for the given user, and optionally alerts the user if delivery is suspended.
4 calls to subscriptions_suspended()
- subscriptions_form_user_profile_form_alter in ./
subscriptions.module - Implementation of hook_form_alter() for the user/uid/edit form.
- subscriptions_page in ./
subscriptions.admin.inc - Display subscribed content data on the user and site subscriptions pages. @ TODO clean up all of these parts
- subscriptions_ui_link in ./
subscriptions_ui.module - Implementation of hook_link().
- subscriptions_user_suspend_form in ./
subscriptions.admin.inc - Returns the form definition for the suspend part of the overview page.
File
- ./
subscriptions.module, line 673 - Subscriptions module.
Code
function subscriptions_suspended($uid, $alert = FALSE) {
$result = db_result(db_query("SELECT suspended FROM {subscriptions_user} WHERE uid = %d", $uid));
if ($result && $alert && empty($_POST)) {
include_once drupal_get_path('module', 'subscriptions') . '/subscriptions.admin.inc';
_subscriptions_suspended_alert($uid, $result);
}
return $result;
}