function auto_image_style_get_link_fields in Auto image style 7
Helper function return array of link fields
2 calls to auto_image_style_get_link_fields()
File
- ./
auto_image_style.module, line 130
Code
function auto_image_style_get_link_fields($instance) {
$link_types = array();
foreach (field_info_instances($instance['entity_type'], $instance['bundle']) as $name => $instance) {
$info = field_info_field($name);
if ($info['type'] == 'link_field') {
$link_types[$name] = "{$instance['label']} ({$instance['field_name']})";
}
}
return $link_types;
}