$file) { // Extract the primary module dependency of the default admin view, which // is the filename prefix delimited by a period/dot; e.g., // 'taxonomy.foo-bar.inc', and only include it if that module is enabled. $dependency = strtok($file->filename, '.'); if (isset($modules[$dependency])) { include $filepath; if (isset($view)) { $views[$view->name] = $view; } } } } } return $views; }