summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc25
1 files changed, 22 insertions, 3 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc b/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc
index 8dbe583..833f44b 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/plugins/views_plugin_exposed_form.inc
@@ -1,6 +1,21 @@
<?php
/**
+ * @file
+ * Definition of views_plugin_exposed_form.
+ */
+
+/**
+ * @defgroup views_exposed_form_plugins Views exposed form plugins
+ * @{
+ * Plugins that handle the validation/submission and rendering of exposed forms.
+ *
+ * If needed, it is possible to use them to add additional form elements.
+ *
+ * @see hook_views_plugins()
+ */
+
+/**
* The base plugin to handle exposed filter forms.
*/
class views_plugin_exposed_form extends views_plugin {
@@ -22,14 +37,14 @@ class views_plugin_exposed_form extends views_plugin {
function option_definition() {
$options = parent::option_definition();
- $options['submit_button'] = array('default' => t('Apply'), 'translatable' => TRUE);
+ $options['submit_button'] = array('default' => 'Apply', 'translatable' => TRUE);
$options['reset_button'] = array('default' => FALSE, 'bool' => TRUE);
$options['reset_button_label'] = array('default' => 'Reset', 'translatable' => TRUE);
$options['exposed_sorts_label'] = array('default' => 'Sort by', 'translatable' => TRUE);
$options['sort_asc_label'] = array('default' => 'Asc', 'translatable' => TRUE);
$options['sort_desc_label'] = array('default' => 'Desc', 'translatable' => TRUE);
- $options['autosubmit'] = array('default' => FALSE);
- $options['autosubmit_hide'] = array('default' => TRUE);
+ $options['autosubmit'] = array('default' => FALSE, 'bool' => TRUE);
+ $options['autosubmit_hide'] = array('default' => TRUE, 'bool' => TRUE);
return $options;
}
@@ -300,3 +315,7 @@ class views_plugin_exposed_form extends views_plugin {
$form_state['values'] = array();
}
}
+
+/**
+ * @}
+ */