$file) { if (strpos($file->name, '_vbo_') !== FALSE && !module_exists('views_bulk_operations')) { // This is a VBO-specific view, but we don't have VBO, so skip it. continue; } require_once $absolute; if (isset($view)) { // $file->name has the ".php" stripped off, but still has the ".view". $view_name = substr($file->name, 0, strrpos($file->name, '.')); $views[$view_name] = $view; } } return $views; }