0

For a project in D7. I need to extract all the colors from an image field. I am looking for a module or solution to save the colors (ie Taxonomy term). So I can search on them.

I have found a solution for D6: https://drupal.org/project/visual_search

Is there an alternative for D7?

1 Answer 1

0

If your happy to use a custom module then something a simple as this would do the trick:

$colours = db_query("SELECT field_my_colour_field_value FROM field_data_field_my_colour_field")->fetchCol();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.