You are here

function simplenews_scheduler_views_pre_query in Simplenews Scheduler 7

Same name and namespace in other branches
  1. 8 simplenews_scheduler_views.inc \simplenews_scheduler_views_pre_query()
  2. 6.2 simplenews_scheduler_views.inc \simplenews_scheduler_views_pre_query()
  3. 2.0.x simplenews_scheduler_views.inc \simplenews_scheduler_views_pre_query()

File

./simplenews_scheduler_views.inc, line 70
simplenews_scheduler_views.inc Views support for simplenews

Code

function simplenews_scheduler_views_pre_query(&$view) {
  foreach ($view->filter as $i => $filter) {
    if ($filter['field'] == 'simplenews_scheduler.node.created') {
      $view->is_cacheable = false;
    }
  }
}