| 1 |
<?php |
<?php |
| 2 |
// $Id: plugins.inc,v 1.152.2.4 2009/09/21 21:25:53 merlinofchaos Exp $ |
// $Id: plugins.inc,v 1.152.2.5 2009/09/24 23:28:23 merlinofchaos Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file plugins.inc |
* @file plugins.inc |
| 5 |
* Built in plugins for Views output handling. |
* Built in plugins for Views output handling. |
| 267 |
'help topic' => 'cache-time', |
'help topic' => 'cache-time', |
| 268 |
), |
), |
| 269 |
), |
), |
| 270 |
|
'exposed_form' => array( |
| 271 |
|
'parent' => array( |
| 272 |
|
'no ui' => TRUE, |
| 273 |
|
'handler' => 'views_plugin_exposed_form', |
| 274 |
|
'parent' => '', |
| 275 |
|
), |
| 276 |
|
'basic' => array( |
| 277 |
|
'title' => t('Basic'), |
| 278 |
|
'help' => t('Basic exposed form'), |
| 279 |
|
'handler' => 'views_plugin_exposed_form_basic', |
| 280 |
|
'uses options' => TRUE, |
| 281 |
|
'help topic' => 'exposed-form-basic', |
| 282 |
|
), |
| 283 |
|
'input_required' => array( |
| 284 |
|
'title' => t('Input required'), |
| 285 |
|
'help' => t('An exposed form that only renders a view if the form contains user input.'), |
| 286 |
|
'handler' => 'views_plugin_exposed_form_input_required', |
| 287 |
|
'uses options' => TRUE, |
| 288 |
|
'help topic' => 'exposed-form-input-required', |
| 289 |
|
), |
| 290 |
|
), |
| 291 |
); |
); |
| 292 |
} |
} |
| 293 |
|
|
| 297 |
* @return Nested array of plugins, grouped by type. |
* @return Nested array of plugins, grouped by type. |
| 298 |
*/ |
*/ |
| 299 |
function views_discover_plugins() { |
function views_discover_plugins() { |
| 300 |
$cache = array('display' => array(), 'style' => array(), 'row' => array(), 'argument default' => array(), 'argument validator' => array(), 'access' => array(), 'cache' => array()); |
$cache = array('display' => array(), 'style' => array(), 'row' => array(), 'argument default' => array(), 'argument validator' => array(), 'access' => array(), 'cache' => array(), 'exposed_form' => array()); |
| 301 |
// Get plugins from all mdoules. |
// Get plugins from all mdoules. |
| 302 |
foreach (module_implements('views_plugins') as $module) { |
foreach (module_implements('views_plugins') as $module) { |
| 303 |
$function = $module . '_views_plugins'; |
$function = $module . '_views_plugins'; |