function theme_equalheights_classes in Equal Heights jQuery 7.2
1 theme call to theme_equalheights_classes()
- equalheights_admin in ./
equalheights.admin.inc - Administration settings page.
File
- ./
equalheights.admin.inc, line 207 - Provides the administration page for Equal Heights.
Code
function theme_equalheights_classes($variables) {
$form = $variables['form'];
$rows = array();
foreach (element_children($form) as $key) {
// Build the table row.
$rows[$key] = array(
'data' => array(
array(
'data' => drupal_render($form[$key]['selector']),
'class' => 'equalheights-class',
),
array(
'data' => drupal_render($form[$key]['mediaquery']),
'class' => 'equalheights-class',
),
array(
'data' => drupal_render($form[$key]['minheight']),
'class' => 'equalheights-minheight',
),
array(
'data' => drupal_render($form[$key]['maxheight']),
'class' => 'equalheights-mzxheight',
),
array(
'data' => drupal_render($form[$key]['overflow']),
'class' => 'equalheights-overflow',
),
array(
'data' => drupal_render($form[$key]['delete']),
'class' => 'equalheights-delete',
),
),
);
// Add any attributes on the element to the row, such as the ahah class.
if (array_key_exists('#attributes', $form[$key])) {
$rows[$key] = array_merge($rows[$key], $form[$key]['#attributes']);
}
}
$header = array(
array(
'data' => t('Class or tag of the element'),
'title' => t('The class of the element to be used with equalheights.'),
),
array(
'data' => t('Media query to filter on'),
'title' => t('The media query.'),
),
array(
'data' => t('Min height (optional)'),
'title' => t('Minimum height of the element'),
),
array(
'data' => t('Max height (optional)'),
'title' => t('Maximum height of the element'),
),
array(
'data' => t('Overflow'),
'title' => t('Overflow value'),
),
array(
'data' => t('Delete'),
'title' => t('Delete class.'),
),
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'equalheights_wrapper',
),
));
$output .= drupal_render_children($form);
return $output;
}