You are here

function ip_geoloc_get_field_instances in IP Geolocation Views & Maps 7

Same name and namespace in other branches
  1. 8 ip_geoloc.module \ip_geoloc_get_field_instances()

Implements hook_get_field_instances().

3 calls to ip_geoloc_get_field_instances()
ip_geoloc_plugin_style_bulk_of_form in views/ip_geoloc_plugin_style.inc
The bulk of the plugin style form.
theme_ip_geoloc_plugin_style_differentiator_color_table in views/ip_geoloc_plugin_style.inc
Return HTML for differentiator to color associations table.
_ip_geoloc_plugin_style_diff_color_table_row_form in views/ip_geoloc_plugin_style.inc
Diffs the color table plugin style row.

File

views/ip_geoloc_plugin_style.inc, line 1470
ip_geoloc_plugin_style.inc

Code

function ip_geoloc_get_field_instances($field_name) {
  $instances = array();
  foreach (field_info_instances() as $type_bundles) {
    foreach ($type_bundles as $bundle_instances) {
      foreach ($bundle_instances as $fld_name => $instance) {
        if ($fld_name == $field_name) {
          $instances[] = $instance;
        }
      }
    }
  }
  return $instances;
}