You are here

function _hosting_client_get_role in Hostmaster (Aegir) 6

Shortcut to get the rid of the 'aegir client' role.

This hardcodes the 'aegir client' role name, so if it is changed, this will fail.

@todo the rid or role name should be a variable

Deprecated

remove this function once the above setting is implemented

File

modules/hosting/client/hosting_client.module, line 334

Code

function _hosting_client_get_role() {
  return db_result(db_query("SELECT rid FROM {role} WHERE name='aegir client'"));
}