function theme_ldapdata_admin_edit in LDAP integration 5
Same name and namespace in other branches
- 5.2 ldapdata.module \theme_ldapdata_admin_edit()
- 6 ldapdata.theme.inc \theme_ldapdata_admin_edit()
File
- ./
ldapdata.module, line 323
Code
function theme_ldapdata_admin_edit($form) {
$output = '';
$rows = array();
foreach (element_children($form) as $element) {
if ($element == "ldap_editable_attributes") {
foreach (element_children($form['ldap_editable_attributes']['ldap_attr_table']) as $key) {
$row = array();
$row[] = drupal_render($form['ldap_editable_attributes']['ldap_attr_table'][$key]);
$row[] = drupal_render($form['ldap_editable_attributes']['ro_status'][$key]);
$row[] = drupal_render($form['ldap_editable_attributes']['rw_status'][$key]);
$rows[] = $row;
}
$form['ldap_editable_attributes']['#children'] .= drupal_render($form['ldap_editable_attributes']['ldap_message']);
$form['ldap_editable_attributes']['#children'] .= theme('table', $form['ldap_editable_attributes']['header']['#value'], $rows);
$output .= drupal_render($form['ldap_editable_attributes']);
}
else {
$output .= drupal_render($form[$element]);
}
}
$output .= drupal_render($form);
return $output;
}