/[drupal]/contributions/modules/simpleviews/simpleviews.pages.inc
ViewVC logotype

Diff of /contributions/modules/simpleviews/simpleviews.pages.inc

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

revision 1.1.2.2, Thu Sep 17 22:03:44 2009 UTC revision 1.1.2.3, Thu Sep 17 22:05:11 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simpleviews.pages.inc,v 1.1.2.1 2008/09/26 19:28:46 eaton Exp $  // $Id: simpleviews.pages.inc,v 1.1.2.2 2009/09/17 22:03:44 eaton Exp $
3    
4  /**  /**
5   * Build the overview form.   * Build the overview form.
# Line 141  function simpleviews_form(&$form_state, Line 141  function simpleviews_form(&$form_state,
141        '#submit' => array('simpleviews_form_delete'),        '#submit' => array('simpleviews_form_delete'),
142      );      );
143    }    }
144    
145    return $form;    return $form;
146  }  }
147    
# Line 238  function _simpleviews_form($simpleview = Line 238  function _simpleviews_form($simpleview =
238      ),      ),
239      '#default_value' => $simpleview['argument'],      '#default_value' => $simpleview['argument'],
240    );    );
241    foreach (taxonomy_get_vocabularies() as $key => $vocab) {  
242      $form['argument']['argument']['#options']['term:' . $vocab->vid] = "The post's $vocab->name";    if (module_exists('taxonomy')) {
243        foreach (taxonomy_get_vocabularies() as $key => $vocab) {
244          $form['argument']['argument']['#options']['term:' . $vocab->vid] = "The post's $vocab->name";
245        }
246    }    }
247    
248    $form['rss'] = array(    $form['rss'] = array(
# Line 247  function _simpleviews_form($simpleview = Line 250  function _simpleviews_form($simpleview =
250      '#title' => t('Add an RSS feed'),      '#title' => t('Add an RSS feed'),
251      '#default_value' => $simpleview['rss'],      '#default_value' => $simpleview['rss'],
252    );    );
253    
254    $form['block'] = array(    $form['block'] = array(
255      '#type' => 'checkbox',      '#type' => 'checkbox',
256      '#title' => t('Create a sidebar widget'),      '#title' => t('Create a sidebar widget'),
# Line 255  function _simpleviews_form($simpleview = Line 258  function _simpleviews_form($simpleview =
258    );    );
259    
260    drupal_alter('simpleview_reusable_form', $form, $simpleview);    drupal_alter('simpleview_reusable_form', $form, $simpleview);
261    
262    return $form;    return $form;
263  }  }
264    

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2