/[drupal]/contributions/modules/custom_review/custom_review.views_default.inc
ViewVC logotype

Contents of /contributions/modules/custom_review/custom_review.views_default.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sun Oct 12 16:15:41 2008 UTC (13 months, 2 weeks ago) by striky2
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-ALPHA1, HEAD
File MIME type: text/x-php
migration onto Drupal 6
1 <?php
2 /**
3 * Implementation of hook_default_views
4 */
5 function custom_review_views_default_views() {
6 $views = array();
7
8 if (file_exists(drupal_get_path('module', 'custom_review') .'/demo_views.inc')) {
9 include_once drupal_get_path('module', 'custom_review') .'/demo_views.inc';
10 }
11
12 $i = 0;
13 while ($i < 5) {
14 $i++;
15 if (function_exists('custom_review_demo_view_'. $i)) {
16 $view = new view;
17 call_user_func_array('custom_review_demo_view_'. $i, array($view));
18 $views[$view->name] = $view;
19 }
20 }
21 return $views;
22 }

  ViewVC Help
Powered by ViewVC 1.1.2