You are here

function color_field_item_property_info in Color Field 7

Same name and namespace in other branches
  1. 7.2 color_field.field.inc \color_field_item_property_info()

Defines info for the properties of the link-field item data structure.

1 call to color_field_item_property_info()
color_field_property_info_callback in ./color_field.module
Additional callback to adapt the property info of link fields.

File

./color_field.module, line 107
An color field with a custom color picker using the Field Types API.

Code

function color_field_item_property_info() {
  $properties['rgb'] = array(
    'type' => 'text',
    'label' => t('The color of the color field.'),
    'setter callback' => 'entity_property_verbatim_set',
  );
  return $properties;
}