function theme_canvasactions_definecanvas in ImageCache Actions 5.2
Same name and namespace in other branches
- 5.3 canvasactions.inc \theme_canvasactions_definecanvas()
- 6.2 canvasactions/canvasactions.inc \theme_canvasactions_definecanvas()
- 6 canvasactions.inc \theme_canvasactions_definecanvas()
Implementation of theme_hook() for imagecache_ui.module
File
- ./
canvasactions.inc, line 108
Code
function theme_canvasactions_definecanvas($element) {
$action = $element['#value'];
if ($action['exact']['width'] || $action['exact']['width']) {
$output = $action['exact']['width'] . 'x' . $action['exact']['height'];
}
else {
$output = ' left:' . $action['relative']['leftdiff'];
$output .= ' right:' . $action['relative']['rightdiff'];
$output .= ' top:' . $action['relative']['topdiff'];
$output .= ' bottom:' . $action['relative']['bottomdiff'];
}
$output .= theme_canvasactions_rgb($action['RGB']);
return $output;
}