function theme_janrain_capture_settings_fields in Janrain Registration 7.4
Same name and namespace in other branches
- 7 janrain_capture_mapping/janrain_capture_mapping.admin.inc \theme_janrain_capture_settings_fields()
- 7.2 janrain_capture_mapping/janrain_capture_mapping.admin.inc \theme_janrain_capture_settings_fields()
- 7.3 janrain_capture_mapping/janrain_capture_mapping.admin.inc \theme_janrain_capture_settings_fields()
Returns HTML for the Capture fields overview page.
File
- janrain_capture_mapping/
janrain_capture_mapping.admin.inc, line 297 - Mapping admin settings functions
Code
function theme_janrain_capture_settings_fields($variables) {
$form = $variables['form'];
$rows = array();
foreach (element_children($form) as $key) {
// Skip form control elements.
if (array_key_exists('path', $form[$key])) {
$field =& $form[$key];
// Add the row
$row = array();
$row[] = drupal_render($field['title']);
$row[] = drupal_render($field['path']);
$row[] = drupal_render($field['edit']);
$row[] = drupal_render($field['delete']);
$rows[] = array(
'data' => $row,
);
}
}
$header = array(
t('Title'),
t('Path'),
);
$header[] = array(
'data' => t('Operations'),
'colspan' => 2,
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}