You are here

function salvattore_preprocess_views_view_salvattore in Salvattore (CSS driven Masonry) 7.2

Same name and namespace in other branches
  1. 8 salvattore.module \salvattore_preprocess_views_view_salvattore()

Implements template_preprocess_views_view().

File

./salvattore.module, line 60
Salvattore masonry plugin for views.

Code

function salvattore_preprocess_views_view_salvattore(&$vars) {
  drupal_add_js(salvattore_get_path(), array(
    'scope' => 'footer',
  ));
  if (variable_get('salvattore_load_default_css')) {
    drupal_add_css(drupal_get_path('module', 'salvattore') . '/css/salvattore_default.css', array(
      'type' => 'file',
      'preprocess' => FALSE,
    ));
  }
}