t('No attributes configured.'), 'colspan' => 3)); } $form['attributes']['#children'] = drupal_render($form['attributes']['ldapdata_attrs']); $form['attributes']['#children'] .= theme('table', $form['attributes']['header']['#value'], $rows); $form['attributes']['#children'] .= drupal_render($form['attributes']['ldapdata_filter_php']); $output .= drupal_render($form['attributes']); } else { $output .= drupal_render($form[$element]); } } $output .= drupal_render($form); return $output; } /** * Theme functon for the LDAP attribute. */ function theme_ldapdata_ldap_attribute($value, $type) { switch ($type) { case 'url': $ret = check_url(strpos($value, '://') ? $value : "http://$value"); $ret = "$ret"; break; case 'txt': default: $ret = check_plain($value); break; } return $ret; }