function opigno_notification_preprocess_views_view in Opigno notifications 3.x
Same name and namespace in other branches
- 8 opigno_notification.module \opigno_notification_preprocess_views_view()
Implements hook_preprocess_views_view().
File
- ./
opigno_notification.module, line 60 - 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';
}
}