function semantic_fields_process_field in Semantic Fields 7
Implements hook_process_HOOK().
File
- ./
semantic_fields.module, line 326 - The functionality of the module
Code
function semantic_fields_process_field(&$variables) {
// Label
$variables['label_classes'] = isset($variables['label_classes_array']) && !empty($variables['label_classes_array']) ? implode(' ', $variables['label_classes_array']) : '';
// Items
$variables['content_classes'] = isset($variables['content_classes_array']) && !empty($variables['label_classes_array']) ? implode(' ', $variables['content_classes_array']) : '';
// Item
if (isset($variables['item_classes']) && is_array($variables['item_classes'])) {
foreach ($variables['item_classes'] as $delta => $classes) {
if (is_array($classes)) {
$variables['item_classes'][$delta] = implode(' ', $classes);
}
}
}
}