function theme_rate_admin_types in Rate 6.2
Same name and namespace in other branches
- 7 rate.admin.inc \theme_rate_admin_types()
Theming function for the node / comment types list in the widget form.
1 theme call to theme_rate_admin_types()
- rate_widget_form in ./
rate.admin.inc - Form for adding and editing widgets.
File
- ./
rate.admin.inc, line 664 - Rating admin
Code
function theme_rate_admin_types($element) {
$header = array(
t('Name'),
t('Node'),
t('Comment'),
);
$rows = array();
foreach ($element as $name => $subelement) {
if ($name[0] != '#') {
unset($subelement['node_type_' . $name]['#title']);
unset($subelement['comment_type_' . $name]['#title']);
$rows[] = array(
check_plain($subelement['#title']),
drupal_render($subelement['node_type_' . $name]),
drupal_render($subelement['comment_type_' . $name]),
);
}
}
return theme('table', $header, $rows);
}