function path_access_admin_roles in Path Access 6
Same name and namespace in other branches
- 7 path_access.module \path_access_admin_roles()
Menu callback; displays the block configuration form.
1 string reference to 'path_access_admin_roles'
- path_access_menu in ./
path_access.module - Implementation of hook_menu().
File
- ./
path_access.module, line 121 - Restricts access to any Drupal path on a per-role basis.
Code
function path_access_admin_roles() {
// Render the role overview.
$result = db_query('SELECT * FROM {role} ORDER BY name');
$header = array(
t('User Role'),
t('Operations'),
);
while ($role = db_fetch_object($result)) {
$rows[] = array(
$role->name,
l(t('edit'), 'admin/user/pathaccess/edit/' . $role->rid),
);
}
$output = theme('table', $header, $rows);
return $output;
}