You are here

function theme_image_rotate_summary in Drupal 7

Returns HTML for a summary of an image rotate effect.

Parameters

$variables: An associative array containing:

  • data: The current configuration for this rotate effect.

Related topics

File

modules/image/image.admin.inc, line 923
Administration pages for image settings.

Code

function theme_image_rotate_summary($variables) {
  $data = $variables['data'];
  return $data['random'] ? t('random between -@degrees&deg and @degrees&deg', array(
    '@degrees' => str_replace('-', '', $data['degrees']),
  )) : t('@degrees&deg', array(
    '@degrees' => $data['degrees'],
  ));
}