You are here

function spaces_views_pre_view in Spaces 6

Implementation of hook_views_pre_view(). Adds dynamic empty text handler to any spaces-feature enabled page views.

File

includes/spaces.views.inc, line 8

Code

function spaces_views_pre_view(&$view, $display_id, $args) {
  if ($view->display_handler->definition['handler'] == 'views_plugin_display_page') {
    if ($feature = context_get('spaces', 'feature')) {

      // This breaks shiz! not sure why.
      // $view->display_handler->set_option('empty', _spaces_views_empty($feature));
    }
  }
}