| 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. |
| 141 |
'#submit' => array('simpleviews_form_delete'), |
'#submit' => array('simpleviews_form_delete'), |
| 142 |
); |
); |
| 143 |
} |
} |
| 144 |
|
|
| 145 |
return $form; |
return $form; |
| 146 |
} |
} |
| 147 |
|
|
| 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( |
| 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'), |
| 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 |
|
|