conditions{$key}['values'])) { foreach ($context->conditions{$key}['values'] as $item) { // Special pipe for views if ($key === 'views') { $split = explode(':', $item); $view_name = array_shift($split); $pipe[$key][$view_name] = $view_name; } else { $pipe[$key][$item] = $item; } } } } // Reactions. if (!empty($context->reactions['block']['blocks'])) { foreach ($context->reactions['block']['blocks'] as $block) { $block = (array) $block; $bid = "{$block['module']}-{$block['delta']}"; $pipe['block'][$bid] = $bid; } } } } return $pipe; } /** * Implements hook_features_revert(). * * @param $module * name of module to revert content for */ function context_features_revert($module = NULL) { $return = ctools_component_features_revert('context', $module); context_invalidate_cache(); return $return; }