function front_page_user_role_delete in Front Page 9.1.x
Same name and namespace in other branches
- 8 front_page.module \front_page_user_role_delete()
- 7.2 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();
}