function override_css_views_default_views in Override css 7
Implements hook_views_default_views().
File
- ./
override_css.module, line 120
Code
function override_css_views_default_views() {
$return = array();
$files = file_scan_directory(drupal_get_path('module', 'override_css') . '/views', "/\\.view.inc\$/");
foreach ($files as $path => $file) {
require $path;
if (isset($view)) {
$return[$view->name] = $view;
}
}
return $return;
}