Same name and namespace in other branches
  1. 7.x-1.x color_field.module \color_field_item_property_info() 1 comment

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.field.inc
Additional callback to adapt the property info of link fields.

File

./color_field.field.inc, line 90

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',
    );
    $properties['opacity'] = array(
        'type' => 'float',
        'label' => t('The opacity of the color field.'),
        'setter callback' => 'entity_property_verbatim_set',
    );
    return $properties;
}