protected function process_field_sets($sets, $ft_dir, &$info, &$field_types_by_name) { if (isset($sets)) { foreach ($sets as $field_set) { if (isset($field_set->fields)) { foreach ($field_set->fields as $field) { if (isset($field_types_by_name[$field->type])) { $icon_url = $field_types_by_name[$field->type]["icon"]; } else { $icon_url = MPU::type_icon_url($field->type); if (!MPU::type_exists($field->type)) { // check if the field type is included in the package if (file_exists($ft_dir.$field->type)) { $icon_url = $ft_dir.$field->type.WOOF_DIR_SEP."icon-color.png"; } else { $info["missing_field_types"] = $field->type; $field->missing = true; } } } $field->icon_url = $icon_url; } } } } }