function theme_image_anchor


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_image_anchor($variables)
cle7 theme_image_anchor($variables)
elmsmedia7 theme_image_anchor($variables)
icor7 theme_image_anchor($variables)
meedjum_blog7 theme_image_anchor($variables)
mooc7 theme_image_anchor($variables)

Returns HTML for a 3x3 grid of checkboxes for image anchors.


$variables: An associative array containing:

  • element: A render element containing radio buttons.

Related topics

2 string references to the theme hook from theme_image_anchor()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

image_crop_form in modules/image/
Form structure for the image crop form.
image_theme in modules/image/image.module
Implements hook_theme().


modules/image/, line 848
Administration pages for image settings.


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'];
    $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'))));