You are here

function theme_canvasactions_roundedcorners in ImageCache Actions 7

Same name and namespace in other branches
  1. 8 canvasactions/rounded_corners.inc \theme_canvasactions_roundedcorners()
  2. 5.3 canvasactions.inc \theme_canvasactions_roundedcorners()
  3. 5.2 canvasactions.inc \theme_canvasactions_roundedcorners()
  4. 6.2 canvasactions/rounded_corners.inc \theme_canvasactions_roundedcorners()
  5. 6 canvasactions.inc \theme_canvasactions_roundedcorners()

Implementation of theme_hook() for imagecache_ui.module

File

canvasactions/rounded_corners.inc, line 319
Routines for rounded corners

Code

function theme_canvasactions_roundedcorners($variables) {
  $element = $variables['element'];
  $data = $element['#value'];
  if (!empty($data['independent_corners_set']['independent_corners'])) {
    $dimens = join('px | ', $data['independent_corners_set']['radii']) . 'px';
  }
  else {
    $dimens = "Radius: {$data['radius']}px";
  }
  return $dimens;
}