You are here

function theme_messaging_admin_methods_table in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.admin.inc \theme_messaging_admin_methods_table()

Format main methods settings form

1 theme call to theme_messaging_admin_methods_table()
messaging_admin_settings in ./messaging.admin.inc
Admin settings form

File

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

Code

function theme_messaging_admin_methods_table($elements) {
  $output = '';
  $header = array(
    t('Enabled'),
    t('Default'),
    t('Name'),
    t('Description'),
  );
  $rows = array();
  foreach (element_children($elements['name']) as $key) {
    $rows[] = array(
      drupal_render($elements['messaging_method_enabled'][$key]),
      drupal_render($elements['messaging_default_method'][$key]),
      '<strong>' . drupal_render($elements['name'][$key]) . '</strong>',
      drupal_render($elements['description'][$key]),
    );
  }
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($elements);
  return $output;
}