function exclude_node_title_install in Exclude Node Title 8
Same name and namespace in other branches
- 6 exclude_node_title.install \exclude_node_title_install()
- 7 exclude_node_title.install \exclude_node_title_install()
Implements hook_install().
File
- ./
exclude_node_title.install, line 13 - Install and update hooks for Exclude Node Title.
Code
function exclude_node_title_install() {
// Attaches default permission to use exclude node title.
$roles = Role::loadMultiple();
foreach ($roles as $role) {
$role
->grantPermission('use exclude node title');
$role
->save();
}
}