function hosting_task_update_6200 in Hosting 7.4
Same name and namespace in other branches
- 6.2 task/hosting_task.install \hosting_task_update_6200()
- 7.3 task/hosting_task.install \hosting_task_update_6200()
Add permission.
File
- task/
hosting_task.install, line 314 - Define the database schema and update functions for the hosting_task module.
Code
function hosting_task_update_6200() {
$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(
'update status of tasks',
));
module_disable(array(
'install_profile_api',
));
return $ret;
}