function theme_services_admin_browse_test in Services 5
Same name and namespace in other branches
- 6 services_admin_browse.inc \theme_services_admin_browse_test()
- 6.2 services_admin_browse.inc \theme_services_admin_browse_test()
- 7 services_admin_browse.inc \theme_services_admin_browse_test()
File
- ./
services_admin_browse.inc, line 210 - The file contains code which is used to create the services testing interface
Code
function theme_services_admin_browse_test($form) {
//die(print_r($form, true));
$output = '';
$output .= drupal_render($form['test']);
$header = array(
t('Name'),
t('Required'),
t('Value'),
);
$rows = array();
foreach (element_children($form['name']) as $key => $type) {
$row = array();
if (isset($form['arg'][$key]['#title'])) {
$row[] = $form['arg'][$key]['#title'];
unset($form['arg'][$key]['#title']);
unset($form['name'][$key]);
}
else {
$row[] = drupal_render($form['name'][$key]);
}
$row[] = drupal_render($form['optional'][$key]);
$row[] = drupal_render($form['arg'][$key]);
$rows[] = $row;
}
$output .= theme('table', $header, $rows);
$output .= drupal_render($form['submit']);
$output .= drupal_render($form);
return $output;
}