You are here

public static function Messaging_Destination::delete_multiple in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_destination.class.inc \Messaging_Destination::delete_multiple()

Delete messaging destination object/s

1 call to Messaging_Destination::delete_multiple()
messaging_user_delete in ./messaging.module
Implementation of hook_user_delete().

File

./messaging.destination.inc, line 349
Drupal Messaging Framework - Default class file

Class

Messaging_Destination
Message destination class

Code

public static function delete_multiple($params) {
  $query = db_delete('messaging_destination');
  foreach ($params as $field => $value) {
    $query
      ->condition($field, $value);
  }
  return $query
    ->execute();
}