function color_field_theme in Color Field 7
Same name and namespace in other branches
- 8.2 color_field.module \color_field_theme()
- 7.2 color_field.module \color_field_theme()
Implements hook_theme().
File
- ./
color_field.module, line 509 - An color field with a custom color picker using the Field Types API.
Code
function color_field_theme($existing, $type, $theme, $path) {
return array(
'color_swatch' => array(
'variables' => array(
'color' => '',
'width' => 50,
'height' => 50,
),
),
);
}