function theme_image_anchor
theme_image_anchor($variables)
Returns HTML for a 3x3 grid of checkboxes for image anchors.
Parameters
$variables: An associative array containing:
- element: A render element containing radio buttons.
Related topics
File
- modules/image/image.admin.inc, line 848
- Administration pages for image settings.
Code
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')))); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.admin.inc/function/theme_image_anchor/7.x