function hosting_platform_update_6206 in Hosting 6.2
Same name and namespace in other branches
- 7.4 platform/hosting_platform.install \hosting_platform_update_6206()
- 7.3 platform/hosting_platform.install \hosting_platform_update_6206()
Add new permission.
File
- platform/
hosting_platform.install, line 168 - Install, update and uninstall for the Platforms module.
Code
function hosting_platform_update_6206() {
$ret = array();
// Temporarily enable Install Profile API module and load includes.
module_enable(array(
'install_profile_api',
));
module_load_include('inc', 'install_profile_api', 'core/user');
install_add_permissions(install_get_rid('aegir administrator'), array(
'create sites on locked platforms',
));
install_add_permissions(install_get_rid('aegir platform manager'), array(
'create sites on locked platforms',
));
module_disable(array(
'install_profile_api',
));
return $ret;
}