You are here

function subscriptions_delete_for_all_users in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions.module.old.php \subscriptions_delete_for_all_users()

Delete one or more subscriptions for all users.

Parameters

string|null $module: The module,...

string|null $field: the field, and

mixed|null $value: the value of the subscription(s) to delete.

int|null $author_uid: The UID of the content author, to delete by-author subscriptions.

Return value

int|null|\DatabaseStatementInterface The number of deleted rows or a database connection-dependent value.

2 calls to subscriptions_delete_for_all_users()
subscriptions_content_node_delete in ./subscriptions_content.module
Implements hook_node_delete().
subscriptions_content_node_type_delete in ./subscriptions_content.module
Implements hook_node_type_delete().

File

./subscriptions.module, line 443
Subscriptions module.

Code

function subscriptions_delete_for_all_users($module = NULL, $field = NULL, $value = NULL, $author_uid = NULL) {
  return subscriptions_delete(NULL, $module, $field, $value, $author_uid);
}