function nodeaccess_get_role_aliases in Nodeaccess 6
Same name and namespace in other branches
- 5 nodeaccess.module \nodeaccess_get_role_aliases()
- 6.2 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 822
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;
}