You are here

function hosting_update_6013 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 hosting.install \hosting_update_6013()
  2. 7.3 hosting.install \hosting_update_6013()

Implements hook_update_N().

Add a permission allowing users to view the 'site disabled' message, which got lost when 'access content' permission was revoked a while ago.

File

./hosting.install, line 344
Install, update and uninstall for the hosting module.

Code

function hosting_update_6013() {
  $ret = array();
  install_include(array(
    'user',
  ));
  install_add_permissions(install_get_rid('anonymous user'), array(
    'access disabled sites',
  ));
  install_add_permissions(install_get_rid('authenticated user'), array(
    'access disabled sites',
  ));
  return $ret;
}