function _role_watchdog_history_rows in Role Watchdog 6
Same name and namespace in other branches
- 6.2 role_watchdog.pages.inc \_role_watchdog_history_rows()
- 7.2 role_watchdog.pages.inc \_role_watchdog_history_rows()
- 7 role_watchdog.pages.inc \_role_watchdog_history_rows()
3 calls to _role_watchdog_history_rows()
- role_watchdog_grants in ./
role_watchdog.pages.inc - role_watchdog_history in ./
role_watchdog.pages.inc - Display tab page from menu callback.
- role_watchdog_report in ./
role_watchdog.pages.inc
File
- ./
role_watchdog.pages.inc, line 138 - User page callbacks for the role_watchdog module.
Code
function _role_watchdog_history_rows($result, $roles, $actions) {
$view_profile = user_access('access user profiles');
while ($row = db_fetch_object($result)) {
$row_data = array(
format_date($row->stamp),
$roles[$row->rid],
$actions[$row->action],
$view_profile ? l($row->name, 'user/' . $row->uid) : $row->name,
);
if (isset($row->admin)) {
array_unshift($row_data, $view_profile ? l($row->admin, 'user/' . $row->adminid) : $row->admin);
}
$rows[] = $row_data;
}
return $rows;
}