function theme_canvasactions_roundedcorners in ImageCache Actions 8
Same name and namespace in other branches
- 5.3 canvasactions.inc \theme_canvasactions_roundedcorners()
- 5.2 canvasactions.inc \theme_canvasactions_roundedcorners()
- 6.2 canvasactions/rounded_corners.inc \theme_canvasactions_roundedcorners()
- 6 canvasactions.inc \theme_canvasactions_roundedcorners()
- 7 canvasactions/rounded_corners.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;
}