You are here

function subscriptions_del_form in Subscriptions 5.2

Same name and namespace in other branches
  1. 6 subscriptions.admin.inc \subscriptions_del_form()
  2. 7 subscriptions.admin.inc \subscriptions_del_form()
  3. 2.0.x subscriptions.admin.old.php \subscriptions_del_form()

Provide the form definition for deleting subscriptions via subscriptions/del/... link.

Callback of _subscriptions_menu() in subscriptions.module.

Parameters

$stype: Subscription type.

$sid: Subscription parameter (depends on type).

$author_uid: User ID for author-specific subscriptions or -1/NULL for all authors.

See also

_subscriptions_menu()

1 string reference to 'subscriptions_del_form'
_subscriptions_menu in ./subscriptions.module
Given a base url, returns the user menu definition for given user account.

File

./subscriptions.admin.inc, line 682

Code

function subscriptions_del_form($stype, $sid, $author_uid = NULL) {
  global $user;
  if ($a = module_invoke_all('subscriptions', 'stype', $stype, $sid, isset($author_uid) ? $author_uid : -1)) {
    list($module, $field, $value, $author_uid) = $a;
    return subscriptions_delete_form($module, $field, $value, $author_uid, $user->uid);
  }
  drupal_set_message(t('Your subscription could not be deactivated.'));
}