You are here

function oa_events_views_pre_render in Open Atrium Events 7.2

Implements hook_views_pre_render()

File

./oa_events.module, line 457
Code for the OA Events feature.

Code

function oa_events_views_pre_render(&$view) {

  // Determine whether pane configuration dictates that we remove attached views
  // feed icon.
  if (isset($view->display_handler->options['pane_conf'])) {
    $conf = $view->display_handler->options['pane_conf'];
    if (isset($view->feed_icon) && isset($conf['include_attachments']) && $conf['include_attachments'] != 1) {
      unset($view->feed_icon);
    }
  }
}