How to create a list of OG groups with no activity using Views?
/**
 * Implements hook_views_pre_render().
 */
function my_module_views_pre_render(&amp;$view) {
  foreach ($view-&gt;result as $key =&gt; $row) {
    $node = node_load($row-&gt;nid);
    if ($node-&gt;changed &gt; (time() - (30 * 24 * 60 * 60))) { // 30 days back in time();
    unset($view-&gt;result[$key]);
    }
  }
}