theme_image_anchor
- Versions
- 7
theme_image_anchor($variables)
Theme callback for displaying a grid of checkboxes.
Parameters
$variables An associative array containing:
- element: A Form API element containing radio buttons.
Related topics
Code
modules/image/image.admin.inc, line 819
<?php
function theme_image_anchor($variables) {
$element = $variables['element'];
$rows = array();
$row = array();
foreach (element_children($element) as $n => $key) {
$element[$key]['#attributes']['title'] = $element[$key]['#title'];
unset($element[$key]['#title']);
$row[] = drupal_render($element[$key]);
if ($n % 3 == 3 - 1) {
$rows[] = $row;
$row = array();
}
}
return theme('table', array('header' => array(), 'rows' => $rows, 'attributes' => array('class' => array('image-anchor'))));
}
?>Login or register to post comments 