function theme_sms_admin_default_form in SMS Framework 5
Same name and namespace in other branches
- 6.2 sms.admin.inc \theme_sms_admin_default_form()
- 6 sms.admin.inc \theme_sms_admin_default_form()
- 7 sms.admin.inc \theme_sms_admin_default_form()
File
- ./
sms.module, line 155 - The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.
Code
function theme_sms_admin_default_form($form) {
$rows = array();
foreach ($form as $name => $element) {
if (isset($element['id']) && is_array($element['id'])) {
$rows[] = array(
drupal_render($form['default'][$element['id']['#value']]),
check_plain($name),
drupal_render($element['configure']),
);
unset($form[$name]);
}
}
$header = array(
t('Default'),
t('Name'),
array(
'data' => t('Operations'),
'colspan' => 1,
),
);
$output .= theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}