function hosting_platform_update_6207 in Hosting 7.4
Same name and namespace in other branches
- 6.2 platform/hosting_platform.install \hosting_platform_update_6207()
- 7.3 platform/hosting_platform.install \hosting_platform_update_6207()
Add new Action permissions.
File
- platform/
hosting_platform.install, line 226 - Define database schema and update functions for the Platforms module.
Code
function hosting_platform_update_6207() {
$ret = array();
// Enable Acstions permissions, and temporarily Install Profile API
// module to load permission CRUD functions
module_enable(array(
'actions_permissions',
'install_profile_api',
));
module_load_include('inc', 'install_profile_api', 'core/user');
install_add_permissions(install_get_rid('aegir administrator'), array(
'execute Platform: Delete (hosting_platform_op_delete)',
'execute Platform: Lock (hosting_platform_op_lock)',
'execute Platform: Unlock (hosting_platform_op_unlock)',
'execute Platform: Verify (hosting_platform_op_verify)',
));
install_add_permissions(install_get_rid('aegir platform manager'), array(
'execute Platform: Delete (hosting_platform_op_delete)',
'execute Platform: Lock (hosting_platform_op_lock)',
'execute Platform: Unlock (hosting_platform_op_unlock)',
'execute Platform: Verify (hosting_platform_op_verify)',
));
module_disable(array(
'install_profile_api',
));
return $ret;
}