function global_filter_get_field_instance in Views Global Filter 6
1 call to global_filter_get_field_instance()
- global_filter_form in ./
global_filter.module - Creates the drop-down selector for the global selector field.
File
- ./
global_filter.module, line 590 - global_filter.module
Code
function global_filter_get_field_instance($field_name) {
foreach (field_info_instances() as $type_bundles) {
foreach ($type_bundles as $bundle_instances) {
foreach ($bundle_instances as $f_name => $instance) {
if ($f_name == $field_name) {
return $instance;
}
}
}
}
return NULL;
}