Theme browser configuration form as table.
$variables: An associative array containing:
function theme_language_negotiation_configure_browser_form_table($variables) {
$form = $variables['form'];
$rows = array();
foreach (element_children($form, TRUE) as $key) {
$row = array();
$row[] = drupal_render($form[$key]['browser_langcode']);
$row[] = drupal_render($form[$key]['drupal_langcode']);
$links = array();
$links['delete'] = array(
'title' => t('Delete'),
'href' => "admin/config/regional/language/detection/browser/delete/{$key}",
'attributes' => array(
'class' => array(
'image-style-link',
),
),
);
$row[] = array(
'data' => array(
'#type' => 'operations',
'#links' => $links,
),
);
$rows[] = $row;
}
$header = array(
t('Browser language code'),
t('Drupal language'),
t('Operations'),
);
$table = array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
'#attributes' => array(
'id' => 'lang-neg-browser',
),
);
$output = drupal_render($table);
return $output;
}