You are here

function multiple_email_update_7100 in Multiple E-mail Addresses 7

Same name and namespace in other branches
  1. 2.x multiple_email.install \multiple_email_update_7100()

Remove email addresses of deleted users

File

./multiple_email.install, line 122
Install file for multiple_email module

Code

function multiple_email_update_7100() {
  $subquery = db_select('users', 'u');
  $subquery
    ->addField('u', 'uid');
  $query = db_delete('multiple_email');
  $query
    ->condition('uid', $subquery, 'NOT IN');
  $query
    ->execute();
}