You are here

function alternative_frontpage_install in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  2. 8.2 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  3. 8.3 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  4. 8.4 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  5. 8.5 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  6. 8.6 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  7. 8.7 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  8. 8.8 modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  9. 10.3.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  10. 10.0.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  11. 10.1.x modules/custom/alternative_frontpage/alternative_frontpage.install \alternative_frontpage_install()
  12. 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);
}