function alternative_frontpage_install in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8.2 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8.3 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8.5 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8.6 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8.7 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 8.8 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 10.3.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 10.0.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 10.1.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
- 10.2.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
Implements hook_install().
Perform actions related to the installation of Alternative Frontpage.
File
- modules/
custom/ alternative_frontpage/ alternative_frontpage.install, line 13 - Installation code for the alternative_frontpage module.
Code
function alternative_frontpage_install() {
// Set some default permissions for the site_manager and administrator.
$permissions = [
'administer alternative frontpage settings',
];
user_role_grant_permissions('administrator', $permissions);
user_role_grant_permissions('sitemanager', $permissions);
}