You are here

function theme_messaging_admin_method_settings in Messaging 6.2

Same name and namespace in other branches
  1. 6.3 messaging.admin.inc \theme_messaging_admin_method_settings()

Theme method settings

1 theme call to theme_messaging_admin_method_settings()
messaging_admin_method_settings in ./messaging.admin.inc
Default sending methods settings

File

./messaging.admin.inc, line 371
Messaging Framework - Admin UI

Code

function theme_messaging_admin_method_settings($form) {
  $header = array(
    t('Method'),
    t('Name for display'),
    t('Message body filter'),
  );
  $rows = array();
  foreach (element_children($form) as $key) {
    $rows[] = array(
      drupal_render($form[$key]['title']),
      drupal_render($form[$key]['name']),
      drupal_render($form[$key]),
    );
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}