Browse Source

Add all scholars to the views that get red if unpublished

main
rlefaive 2 weeks ago
parent
commit
aaad4ee11e
  1. 1
      islandlives.module

1
islandlives.module

@ -34,6 +34,7 @@ function islandlives_views_pre_render(ViewExecutable $view) {
'media',
'manage_members',
'media_of',
'all_scholars',
];
if (isset($view) && (in_array($view->storage->id(), $applicable_views))) {
$view->element['#attached']['library'][] = 'islandlives/unpublished';

Loading…
Cancel
Save