Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Module Integrations
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Feb 2014 at 11:11 UTC
Updated:
16 May 2014 at 14:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidWhy not just $fields = ... ? field_info_field_map() and field_info_fields();
Possibly just do a function_exists() instead of version_compare().
We could even remove the foreach() here and just do return drupal_map_assoc(array_keys($fields));
Comment #2
pjcdawkins commentedThanks for reviewing. New patch attached. The version_compare() is due to your earlier advice.
Comment #3
fagoLet's use function_exists() as those calls are pretty cheap.
Comment #4
sanchiz commentedNew patch with function_exists().
Comment #5
dasjoLooks good to go.
Comment #6
fagoThanks, committed.