You are here

function page_title_user_cancel in Page Title 7.2

Same name and namespace in other branches
  1. 8.2 page_title.module \page_title_user_cancel()
  2. 7 page_title.module \page_title_user_cancel()

Implement hook_user_cancel().

File

./page_title.module, line 515
Enhanced control over the page title (in the head tag).

Code

function page_title_user_cancel(&$edit, &$account, $method) {
  switch ($method) {
    case 'user_cancel_block_unpublish':
      break;
    case 'user_cancel_reassign':
      break;
    case 'user_cancel_delete':
      db_delete('page_title')
        ->condition('type', 'user')
        ->condition('id', $account->uid)
        ->execute();
      break;
  }
}