function theme_canvasactions_rgb_form in ImageCache Actions 5.2
Same name and namespace in other branches
- 5.3 utility.inc \theme_canvasactions_rgb_form()
Render the subform in a table
1 theme call to theme_canvasactions_rgb_form()
- imagecache_rgb_form in ./
utility.inc - Prepare a subform for displaying RGB fields
File
- ./
utility.inc, line 55
Code
function theme_canvasactions_rgb_form(&$form) {
$header = array();
$table = array();
foreach (element_children($form) as $key) {
$header[$key] = $form[$key]['#title'];
unset($form[$key]['#title']);
$table['field'][$key] = drupal_render($form[$key]);
}
$output .= theme('table', $header, $table);
$output .= t('Enter colors in decimal, 0-255, or in HEX. If HEX is set, it will take priority.');
$output .= drupal_render($form);
return $output;
}