You are here

function space_customizer_views::customize in Spaces 6

Same name and namespace in other branches
  1. 5.2 spaces.module \space_customizer_views::customize()

Overrides space_customizer::customize

2 calls to space_customizer_views::customize()
spaces_views_pre_query in ./spaces.module
Implementation of hook_views_pre_query().
space_customizer_views::form in ./spaces.module

File

./spaces.module, line 699

Class

space_customizer_views
Customizer for views titles and headers.

Code

function customize($space, $feature, &$view = NULL) {
  if (isset($space->customizer[$feature]['views'][$view->name])) {

    // Apply customizations to the view object
    $customizer = $space->customizer[$feature]['views'][$view->name];
    foreach ($customizer as $property => $value) {
      $view->{$property} = $value;
    }
  }
  return $view;
}