/[drupal]/contributions/modules/notify_by_views/notify_by_views.module
ViewVC logotype

Diff of /contributions/modules/notify_by_views/notify_by_views.module

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

revision 1.8, Tue Apr 28 17:21:39 2009 UTC revision 1.9, Tue Apr 28 18:27:00 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: notify_by_views.module,v 1.7 2008/10/09 16:52:57 matt2000 Exp $ */  /* $Id: notify_by_views.module,v 1.8 2009/04/28 17:21:39 matt2000 Exp $ */
3  /**  /**
4   * Display help and module information   * Display help and module information
5   * @param section which section of the site we're displaying help   * @param section which section of the site we're displaying help
# Line 111  notifications: '. $period .'. These may Line 111  notifications: '. $period .'. These may
111        '#weight' => 0        '#weight' => 0
112      );      );
113    
     $vresult = db_query("SELECT name FROM {view_view}");  
114      $views_available = array();      $views_available = array();
115        //Get custom views
116        $vresult = db_query("SELECT name FROM {view_view}");
117      for ($row = 0; $view_name = db_result($vresult, $row); $row++) {      for ($row = 0; $view_name = db_result($vresult, $row); $row++) {
118        if (views_access(views_get_view($view_name))) $views_available[$view_name] = $view_name;        if (views_access(views_get_view($view_name))) $views_available[$view_name] = $view_name;
119      }      }
120        //Get module-provided default views.
121        $default_views = _views_get_default_views();
122        foreach ($default_views as $view_name => $view) {
123          if (views_access(views_get_view($view_name))) $views_available[$view_name] = $view_name;
124        }
125    
126      $selected_views = variable_get('notify_by_views_select_views', array());      $selected_views = variable_get('notify_by_views_select_views', array());
127      //drupal_set_message(var_export($selected_views,TRUE));      //drupal_set_message(var_export($selected_views,TRUE));

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2