$styles) { $variables['container'] = $styles; $variables['container_name'] = $variables['container']['name']; $callback = $styles['filter callback']; if (function_exists($callback)) { if (call_user_func_array($callback, array($variables))) { if (!empty($presets[$field_type][$style_name][$container_name])) { $variables['preset'] = array_pop($presets[$field_type][$style_name][$container_name]); $variables['preset_name'] = $variables['preset']['name']; $variables['output'] = theme($styles['themes']['styles'], $field_type, $style_name, $variables['object'], $variables); $variables['classes_array'][] = 'styles-field-' . $field_type; $variables['classes_array'][] = 'styles-style-' . $style_name; $variables['classes_array'][] = 'styles-container-' . $variables['container_name']; $variables['classes_array'][] = 'styles-preset-' . $variables['preset_name']; $variables['classes'] = implode(' ', $variables['classes_array']); break; } } } } }