Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To achieve this, we just need to add a 'property_type' key to the color_field_field_info return array with the value of 'color_field_rgb'.
So something like this seems to work:
function color_field_field_info() {
return array(
'color_field_rgb' => array(
'label' => t('Color Field'),
'description' => t('Field using a hexadecimal notation.'),
'default_widget' => 'color_field_default_widget',
'default_formatter' => 'color_field_default_formatter',
'property_type' => 'color_field_rgb',
),
);
}
Comments
Comment #1
targoo CreditAttribution: targoo commentedHi
Done on dev and will be released soon in version 7.2
Thanks,
Comment #2
targoo CreditAttribution: targoo commented7.x-1.2 has been released and fixes this issue.