You are here

function opigno_notification_preprocess_views_view in Opigno notifications 8

Same name and namespace in other branches
  1. 3.x opigno_notification.module \opigno_notification_preprocess_views_view()

Implements hook_preprocess_views_view().

File

./opigno_notification.module, line 46
Contains opigno_notification.module.

Code

function opigno_notification_preprocess_views_view(&$vars) {

  // Attach js & css to view.
  if (isset($vars['view_array']['#name']) && $vars['view_array']['#name'] === 'opigno_notification') {
    $vars['#attached']['library'][] = 'opigno_notification/view';
  }
}