function context_condition_i18n_views::execute in i18n page views 6.0
Same name and namespace in other branches
- 6 context_condition_i18n_views.inc \context_condition_i18n_views::execute()
- 7 context_condition_i18n_views.inc \context_condition_i18n_views::execute()
File
- ./
context_condition_i18n_views.inc, line 31
Class
Code
function execute($view) {
switch ($view->display_handler->display->display_plugin) {
case 'i18n_page':
// Set contexts for this view.
foreach ($this
->get_contexts($view->name) as $context) {
$this
->condition_met($context, $view->name);
}
// Set any contexts associated with the current display
if (!empty($view->current_display)) {
foreach ($this
->get_contexts("{$view->name}:{$view->current_display}") as $context) {
$this
->condition_met($context, "{$view->name}:{$view->current_display}");
}
}
break;
}
}