function theme_views_bulk_operations_profile_action_form in Views Bulk Operations (VBO) 6
Same name and namespace in other branches
- 6.3 profile.action.inc \theme_views_bulk_operations_profile_action_form()
File
- actions/
profile.action.inc, line 43
Code
function theme_views_bulk_operations_profile_action_form($form) {
$header = array(
theme('table_select_header_cell'),
t('Category'),
t('Field'),
);
$rows = array();
foreach (profile_categories() as $category) {
$fields = _profile_get_fields($category['name']);
while ($field = db_fetch_object($fields)) {
$row = array();
$row[] = drupal_render($form[$field->name . '_check']);
$row[] = array(
'data' => $category['name'],
'rowspan' => 1,
'valign' => 'center',
);
$row[] = drupal_render($form[$category['name']][$field->name]);
$rows[] = $row;
}
drupal_render($form[$category['name']]);
// render the fieldsets but don't add them to the theme
}
$output = theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}