function hosting_update_6013 in Hosting 7.4
Same name and namespace in other branches
- 6.2 hosting.install \hosting_update_6013()
- 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 363 - Define database schemas and update functions 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;
}