function theme_advuser_admin_users_form in Advanced User 5
File
- ./
advuser.module, line 524
Code
function theme_advuser_admin_users_form($form) {
// Overview table:
$header = array(
theme('table_select_header_cell'),
array(
'data' => t('Username'),
'field' => 'u.name',
),
array(
'data' => t('Status'),
'field' => 'u.status',
),
array(
'data' => t('Last access'),
'field' => 'u.access',
),
array(
'data' => t('User ID'),
'field' => 'u.uid',
),
t('Operations'),
);
$output .= drupal_render($form['options_all']);
$output .= drupal_render($form['options_sel']);
if (isset($form['name']) && is_array($form['name'])) {
foreach (element_children($form['name']) as $key) {
$rows[] = array(
drupal_render($form['users'][$key]),
drupal_render($form['name'][$key]),
drupal_render($form['status'][$key]),
drupal_render($form['access'][$key]),
drupal_render($form['refcode'][$key]),
drupal_render($form['operations'][$key]),
);
}
}
else {
$rows[] = array(
array(
'data' => t('No posts available.'),
'colspan' => '4',
),
);
}
$output .= theme('table', $header, $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
$output .= theme('pager', NULL, 50, 0);
return $output;
}