function _hosting_client_get_role in Hosting 6.2
Same name and namespace in other branches
- 5 client/hosting_client.module \_hosting_client_get_role()
- 7.4 client/hosting_client.module \_hosting_client_get_role()
- 7.3 client/hosting_client.module \_hosting_client_get_role()
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
- client/
hosting_client.module, line 332
Code
function _hosting_client_get_role() {
return db_result(db_query("SELECT rid FROM {role} WHERE name='aegir client'"));
}