You are here

function front_page_user_role_delete in Front Page 8

Same name and namespace in other branches
  1. 7.2 front_page.module \front_page_user_role_delete()
  2. 9.1.x front_page.module \front_page_user_role_delete()

Implements hook_user_role_delete().

File

./front_page.module, line 114
This module allows the site admin to set advanced front page settings.

Code

function front_page_user_role_delete($role) {

  // Delete Front configuration for the role being deleted.
  Database::getConnection()
    ->delete('front_page')
    ->condition('rid', $role->rid)
    ->execute();
}