You are here

function hook_node_limit_delete in Node Limit 8

Same name and namespace in other branches
  1. 7 node_limit.api.php \hook_node_limit_delete()

Delete submodules' data.

Called when deleting a node_limit.

Parameters

array $lids: An array of node limit ids. Cannot be empty.

5 functions implement hook_node_limit_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

node_limit_interval_node_limit_delete in old/node_limit_interval/node_limit_interval.module
Implements hook_node_limit_delete().
node_limit_role_node_limit_delete in old/node_limit_role/node_limit_role.module
Implements hook_node_limit_delete().
node_limit_type_node_limit_delete in old/node_limit_type/node_limit_type.module
Implements hook_node_limit_delete().
node_limit_userofrole_node_limit_delete in old/node_limit_userofrole/node_limit_userofrole.module
Implements hook_node_limit_delete().
node_limit_user_node_limit_delete in old/node_limit_user/node_limit_user.module
Implements hook_node_limit_delete().
1 invocation of hook_node_limit_delete()
node_limit_delete in old/node_limit.module
Delete node limits.

File

old/node_limit.api.php, line 51
Node_limit api reference.

Code

function hook_node_limit_delete(array $lids) {
  \Drupal::database()
    ->delete('submodule')
    ->condition('lid', $lids, 'IN')
    ->execute();
}