You are here

function hosting_task_update_6200 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 task/hosting_task.install \hosting_task_update_6200()
  2. 7.3 task/hosting_task.install \hosting_task_update_6200()

Add permission.

File

task/hosting_task.install, line 290

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;
}