function nodeaccess_get_role_aliases in Nodeaccess 5
Same name and namespace in other branches
- 6.2 nodeaccess.module \nodeaccess_get_role_aliases()
- 6 nodeaccess.module \nodeaccess_get_role_aliases()
- 7 nodeaccess.module \nodeaccess_get_role_aliases()
1 call to nodeaccess_get_role_aliases()
- nodeaccess_admin_form in ./
nodeaccess.module - Menu callback. Draws the admin page.
File
- ./
nodeaccess.module, line 695
Code
function nodeaccess_get_role_aliases() {
$aliases = array();
$sql = db_query('SELECT r.rid, r.name, a.name AS alias, a.weight FROM {role} r LEFT JOIN {nodeaccess_role_alias} a ON r.rid = a.rid ORDER BY r.name');
while ($a = db_fetch_object($sql)) {
$aliases[$a->rid]['name'] = $a->name;
$aliases[$a->rid]['alias'] = $a->alias;
$aliases[$a->rid]['weight'] = $a->weight;
}
return $aliases;
}