function theme_quotes_user_form in Quotes 6
Same name and namespace in other branches
- 5 quotes.user.inc \theme_quotes_user_form()
Theme node administration overview.
File
- ./
quotes.user.inc, line 70 - Displays a Drupal page containing quotes submitted by a given user.
Code
function theme_quotes_user_form($form) {
// Overview table:
$header = array(
t('Title'),
t('Status'),
t('Tags'),
t('Last updated'),
array(
'data' => t('Operations'),
'colspan' => '2',
),
);
$rows = array();
if (isset($form['title']) && is_array($form['title'])) {
foreach (element_children($form['title']) as $key) {
$rows[] = array(
drupal_render($form['title'][$key]),
drupal_render($form['status'][$key]),
drupal_render($form['group'][$key]),
drupal_render($form['updated'][$key]),
drupal_render($form['operationse'][$key]),
drupal_render($form['operationsd'][$key]),
);
}
}
else {
$rows[] = array(
array(
'data' => t('No posts available.'),
'colspan' => '6',
),
);
}
$output .= theme('table', $header, $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
return $output;
}