summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--handlers/views_handler_area.inc2
-rw-r--r--handlers/views_handler_area_text.inc8
-rw-r--r--handlers/views_handler_argument_date.inc23
-rw-r--r--handlers/views_handler_argument_group_by_numeric.inc2
-rw-r--r--handlers/views_handler_argument_null.inc2
-rw-r--r--handlers/views_handler_field.inc8
-rw-r--r--handlers/views_handler_field_boolean.inc1
-rw-r--r--handlers/views_handler_field_counter.inc5
-rw-r--r--handlers/views_handler_field_serialized.inc5
-rw-r--r--handlers/views_handler_filter.inc6
-rw-r--r--handlers/views_handler_filter_boolean_operator.inc2
-rw-r--r--handlers/views_handler_filter_boolean_operator_string.inc2
-rw-r--r--handlers/views_handler_filter_date.inc2
-rw-r--r--handlers/views_handler_filter_equality.inc2
-rw-r--r--handlers/views_handler_filter_group_by_numeric.inc2
-rw-r--r--handlers/views_handler_filter_in_operator.inc1
-rw-r--r--handlers/views_handler_filter_many_to_one.inc2
-rw-r--r--handlers/views_handler_filter_numeric.inc2
-rw-r--r--handlers/views_handler_filter_string.inc2
-rw-r--r--handlers/views_handler_relationship.inc2
-rw-r--r--handlers/views_handler_sort.inc2
-rw-r--r--handlers/views_handler_sort_group_by_numeric.inc2
-rw-r--r--handlers/views_handler_sort_random.inc2
-rw-r--r--help/api-plugins.html36
-rw-r--r--includes/plugins.inc4
-rw-r--r--includes/view.inc64
-rw-r--r--modules/aggregator/views_handler_argument_aggregator_category_cid.inc2
-rw-r--r--modules/aggregator/views_handler_argument_aggregator_fid.inc2
-rw-r--r--modules/aggregator/views_handler_argument_aggregator_iid.inc2
-rw-r--r--modules/aggregator/views_handler_field_aggregator_category.inc2
-rw-r--r--modules/aggregator/views_handler_field_aggregator_title_link.inc2
-rw-r--r--modules/aggregator/views_handler_field_aggregator_xss.inc6
-rw-r--r--modules/aggregator/views_handler_filter_aggregator_category_cid.inc2
-rw-r--r--modules/comment/views_handler_argument_comment_user_uid.inc2
-rw-r--r--modules/comment/views_handler_field_comment.inc4
-rw-r--r--modules/comment/views_handler_field_comment_depth.inc4
-rw-r--r--modules/comment/views_handler_field_comment_link.inc2
-rw-r--r--modules/comment/views_handler_field_comment_link_delete.inc2
-rw-r--r--modules/comment/views_handler_field_comment_link_edit.inc2
-rw-r--r--modules/comment/views_handler_field_comment_link_reply.inc2
-rw-r--r--modules/comment/views_handler_field_comment_node_link.inc4
-rw-r--r--modules/comment/views_handler_field_comment_username.inc4
-rw-r--r--modules/comment/views_handler_field_last_comment_timestamp.inc5
-rw-r--r--modules/comment/views_handler_field_ncs_last_comment_name.inc4
-rw-r--r--modules/comment/views_handler_field_ncs_last_updated.inc4
-rw-r--r--modules/comment/views_handler_field_node_comment.inc4
-rw-r--r--modules/comment/views_handler_field_node_new_comments.inc4
-rw-r--r--modules/comment/views_handler_filter_comment_user_uid.inc2
-rw-r--r--modules/comment/views_handler_filter_ncs_last_updated.inc2
-rw-r--r--modules/comment/views_handler_filter_node_comment.inc2
-rw-r--r--modules/comment/views_handler_sort_ncs_last_comment_name.inc4
-rw-r--r--modules/comment/views_handler_sort_ncs_last_updated.inc4
-rw-r--r--modules/contact/views_handler_field_contact_link.inc2
-rw-r--r--modules/filter/views_handler_field_filter_format_name.inc2
-rw-r--r--modules/locale/views_handler_argument_locale_group.inc2
-rw-r--r--modules/locale/views_handler_argument_locale_language.inc2
-rw-r--r--modules/locale/views_handler_field_locale_group.inc2
-rw-r--r--modules/locale/views_handler_field_locale_language.inc2
-rw-r--r--modules/locale/views_handler_field_locale_link_edit.inc2
-rw-r--r--modules/locale/views_handler_filter_locale_group.inc2
-rw-r--r--modules/locale/views_handler_filter_locale_language.inc2
-rw-r--r--modules/locale/views_handler_filter_locale_version.inc2
-rw-r--r--modules/node/views_handler_field_history_user_timestamp.inc2
-rw-r--r--modules/node/views_handler_field_node.inc2
-rw-r--r--modules/node/views_handler_field_node_link.inc2
-rw-r--r--modules/node/views_handler_field_node_link_delete.inc2
-rw-r--r--modules/node/views_handler_field_node_link_edit.inc2
-rw-r--r--modules/node/views_handler_field_node_path.inc2
-rw-r--r--modules/node/views_handler_field_node_revision.inc6
-rw-r--r--modules/node/views_handler_field_node_revision_link_delete.inc2
-rw-r--r--modules/node/views_handler_field_node_revision_link_revert.inc4
-rw-r--r--modules/node/views_handler_field_node_type.inc2
-rw-r--r--modules/node/views_handler_filter_history_user_timestamp.inc2
-rw-r--r--modules/node/views_handler_filter_node_access.inc2
-rw-r--r--modules/node/views_handler_filter_node_status.inc2
-rw-r--r--modules/node/views_handler_filter_node_type.inc2
-rw-r--r--modules/node/views_handler_filter_node_uid_revision.inc7
-rw-r--r--modules/profile/views_handler_field_profile_date.inc2
-rw-r--r--modules/profile/views_handler_field_profile_list.inc2
-rw-r--r--modules/profile/views_handler_filter_profile_selection.inc2
-rw-r--r--modules/search/views_handler_argument_search.inc2
-rw-r--r--modules/search/views_handler_field_search_score.inc2
-rw-r--r--modules/search/views_handler_filter_search.inc2
-rw-r--r--modules/search/views_handler_sort_search_score.inc2
-rw-r--r--modules/statistics/views_handler_field_accesslog_path.inc2
-rw-r--r--modules/system/views_handler_argument_file_fid.inc4
-rw-r--r--modules/system/views_handler_field_file.inc2
-rw-r--r--modules/system/views_handler_field_file_extension.inc4
-rw-r--r--modules/system/views_handler_field_file_status.inc2
-rw-r--r--modules/system/views_handler_filter_file_status.inc4
-rw-r--r--modules/taxonomy/views_handler_argument_taxonomy.inc2
-rw-r--r--modules/taxonomy/views_handler_argument_term_node_tid.inc4
-rw-r--r--modules/taxonomy/views_handler_argument_term_node_tid_depth.inc4
-rw-r--r--modules/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc4
-rw-r--r--modules/taxonomy/views_handler_argument_vocabulary_vid.inc2
-rw-r--r--modules/taxonomy/views_handler_field_taxonomy.inc2
-rw-r--r--modules/taxonomy/views_handler_field_term_link_edit.inc4
-rw-r--r--modules/taxonomy/views_handler_field_term_node_tid.inc3
-rw-r--r--modules/taxonomy/views_handler_filter_term_node_tid.inc6
-rw-r--r--modules/taxonomy/views_handler_filter_term_node_tid_depth.inc4
-rw-r--r--modules/taxonomy/views_handler_filter_vocabulary_vid.inc4
-rw-r--r--modules/taxonomy/views_handler_relationship_node_term_data.inc6
-rw-r--r--modules/translation/views_handler_argument_node_tnid.inc2
-rw-r--r--modules/translation/views_handler_field_node_language.inc2
-rw-r--r--modules/translation/views_handler_field_node_link_translate.inc2
-rw-r--r--modules/translation/views_handler_field_node_translation_link.inc2
-rw-r--r--modules/translation/views_handler_filter_node_language.inc4
-rw-r--r--modules/translation/views_handler_filter_node_tnid.inc2
-rw-r--r--modules/translation/views_handler_filter_node_tnid_child.inc2
-rw-r--r--modules/translation/views_handler_relationship_translation.inc2
-rw-r--r--modules/user/views_handler_argument_user_uid.inc2
-rw-r--r--modules/user/views_handler_argument_users_roles_rid.inc4
-rw-r--r--modules/user/views_handler_field_user.inc2
-rw-r--r--modules/user/views_handler_field_user_language.inc7
-rw-r--r--modules/user/views_handler_field_user_link.inc2
-rw-r--r--modules/user/views_handler_field_user_link_edit.inc2
-rw-r--r--modules/user/views_handler_field_user_mail.inc4
-rw-r--r--modules/user/views_handler_field_user_name.inc4
-rw-r--r--modules/user/views_handler_field_user_picture.inc4
-rw-r--r--modules/user/views_handler_field_user_roles.inc2
-rw-r--r--modules/user/views_handler_filter_user_current.inc4
-rw-r--r--modules/user/views_handler_filter_user_name.inc4
-rw-r--r--modules/user/views_handler_filter_user_roles.inc4
-rw-r--r--plugins/views_plugin_display.inc3
-rw-r--r--plugins/views_plugin_style_table.inc22
-rw-r--r--theme/theme.inc5
-rw-r--r--views.module3
127 files changed, 441 insertions, 63 deletions
diff --git a/handlers/views_handler_area.inc b/handlers/views_handler_area.inc
index df0d15e..b3a7457 100644
--- a/handlers/views_handler_area.inc
+++ b/handlers/views_handler_area.inc
@@ -82,6 +82,8 @@ class views_handler_area extends views_handler {
/**
* A special handler to take the place of missing or broken handlers.
+ *
+ * @ingroup views_area_handlers
*/
class views_handler_area_broken extends views_handler_area {
function ui_name($short = FALSE) {
diff --git a/handlers/views_handler_area_text.inc b/handlers/views_handler_area_text.inc
index 2fc92ce..93c5834 100644
--- a/handlers/views_handler_area_text.inc
+++ b/handlers/views_handler_area_text.inc
@@ -1,14 +1,14 @@
<?php
/**
-* @file
-* Views area text handler.
-*/
+ * @file
+ * Contains views_handler_area_text handler.
+ */
/**
+ * Views area text handler.
* @ingroup views_area_handlers Views' area handlers
*/
-
class views_handler_area_text extends views_handler_area {
function option_definition() {
diff --git a/handlers/views_handler_argument_date.inc b/handlers/views_handler_argument_date.inc
index 527255e..37c30b5 100644
--- a/handlers/views_handler_argument_date.inc
+++ b/handlers/views_handler_argument_date.inc
@@ -63,4 +63,27 @@ class views_handler_argument_date extends views_handler_argument_formula {
return parent::get_default_argument($raw);
}
+
+ /**
+ * The date handler provides some default argument types, which aren't argument default plugins,
+ * so addapt the export mechanism.
+ */
+ function export_plugin($indent, $prefix, $storage, $option, $definition, $parents) {
+
+ // Only use a special behaviour for the special argument types, else just
+ // use the default behaviour.
+ if ($option == 'default_argument_type') {
+ $type = 'argument default';
+ $option_name = 'default_argument_options';
+
+ $plugin = $this->get_plugin($type);
+ $name = $this->options[$option];
+ if (in_array($name, array('date', 'node_created', 'node_changed'))) {
+ // Write which plugin to use.
+ $output = $indent . $prefix . "['$option'] = '$name';\n";
+ return $output;
+ }
+ }
+ return parent::export_plugin($indent, $prefix, $storage, $option, $definition, $parents);
+ }
}
diff --git a/handlers/views_handler_argument_group_by_numeric.inc b/handlers/views_handler_argument_group_by_numeric.inc
index 8960e74..0569602 100644
--- a/handlers/views_handler_argument_group_by_numeric.inc
+++ b/handlers/views_handler_argument_group_by_numeric.inc
@@ -2,6 +2,8 @@
/**
* Simple handler for arguments using group by.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_group_by_numeric extends views_handler_argument {
function query($group_by = FALSE) {
diff --git a/handlers/views_handler_argument_null.inc b/handlers/views_handler_argument_null.inc
index 4010b84..49b7502 100644
--- a/handlers/views_handler_argument_null.inc
+++ b/handlers/views_handler_argument_null.inc
@@ -1,6 +1,8 @@
<?php
/**
* Argument handler that ignores the argument.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_null extends views_handler_argument {
function option_definition() {
diff --git a/handlers/views_handler_field.inc b/handlers/views_handler_field.inc
index cb7faee..da79466 100644
--- a/handlers/views_handler_field.inc
+++ b/handlers/views_handler_field.inc
@@ -1148,6 +1148,8 @@ If you would like to have the characters %5B and %5D please use the html entity
/**
* A special handler to take the place of missing or broken handlers.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_broken extends views_handler_field {
function ui_name($short = FALSE) {
@@ -1171,6 +1173,8 @@ class views_handler_field_broken extends views_handler_field {
/**
* Render a numeric value as a size.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_file_size extends views_handler_field {
function option_definition() {
@@ -1211,7 +1215,9 @@ class views_handler_field_file_size extends views_handler_field {
}
/**
- * A handler to run a field through simple XSS filtering
+ * A handler to run a field through simple XSS filtering.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_xss extends views_handler_field {
function render($values) {
diff --git a/handlers/views_handler_field_boolean.inc b/handlers/views_handler_field_boolean.inc
index b759b81..b2e5fa7 100644
--- a/handlers/views_handler_field_boolean.inc
+++ b/handlers/views_handler_field_boolean.inc
@@ -33,6 +33,7 @@ class views_handler_field_boolean extends views_handler_field {
'true-false' => array(t('True'), t('False')),
'on-off' => array(t('On'), t('Off')),
'enabled-disabled' => array(t('Enabled'), t('Disabled')),
+ 'unicode-yes-no' => array('✔', '✖'),
);
$output_formats = isset($this->definition['output formats']) ? $this->definition['output formats'] : array();
$this->formats = array_merge($default_formats, $output_formats);
diff --git a/handlers/views_handler_field_counter.inc b/handlers/views_handler_field_counter.inc
index 8ca638c..5866c41 100644
--- a/handlers/views_handler_field_counter.inc
+++ b/handlers/views_handler_field_counter.inc
@@ -1,5 +1,10 @@
<?php
+/**
+ * Field handler to show a counter of the current row.
+ *
+ * @ingroup views_field_handlers
+ */
class views_handler_field_counter extends views_handler_field {
function option_definition() {
$options = parent::option_definition();
diff --git a/handlers/views_handler_field_serialized.inc b/handlers/views_handler_field_serialized.inc
index e92043e..75ca19a 100644
--- a/handlers/views_handler_field_serialized.inc
+++ b/handlers/views_handler_field_serialized.inc
@@ -1,5 +1,10 @@
<?php
+/**
+ * Field handler to show data of serialized fields.
+ *
+ * @ingroup views_field_handlers
+ */
class views_handler_field_serialized extends views_handler_field {
function option_definition() {
diff --git a/handlers/views_handler_filter.inc b/handlers/views_handler_filter.inc
index beed5f0..5959f18 100644
--- a/handlers/views_handler_filter.inc
+++ b/handlers/views_handler_filter.inc
@@ -449,7 +449,7 @@ class views_handler_filter extends views_handler {
* Tell the renderer about our exposed form. This only needs to be
* overridden for particularly complex forms. And maybe not even then.
*
- * @return
+ * @return array|null
* An array with the following keys:
* - operator: The $form key of the operator. Set to NULL if no operator.
* - value: The $form key of the value. Set to NULL if no value.
@@ -580,6 +580,8 @@ class views_handler_filter extends views_handler {
* with OR groups. Some filters must also use HAVING which also makes
* them not groupable. These filters will end up in a special group
* if OR grouping is in use.
+ *
+ * @return bool
*/
function can_group() {
return TRUE;
@@ -589,6 +591,8 @@ class views_handler_filter extends views_handler {
/**
* A special handler to take the place of missing or broken handlers.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_broken extends views_handler_filter {
function ui_name($short = FALSE) {
diff --git a/handlers/views_handler_filter_boolean_operator.inc b/handlers/views_handler_filter_boolean_operator.inc
index c6ad8f1..ac60906 100644
--- a/handlers/views_handler_filter_boolean_operator.inc
+++ b/handlers/views_handler_filter_boolean_operator.inc
@@ -10,6 +10,8 @@
* - on-off: On/Off
* - enabled-disabled: Enabled/Disabled
* - accept null: Treat a NULL value as false.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_boolean_operator extends views_handler_filter {
// exposed filter options
diff --git a/handlers/views_handler_filter_boolean_operator_string.inc b/handlers/views_handler_filter_boolean_operator_string.inc
index bd7bd87..b27cae4 100644
--- a/handlers/views_handler_filter_boolean_operator_string.inc
+++ b/handlers/views_handler_filter_boolean_operator_string.inc
@@ -7,6 +7,8 @@
*
* Definition items:
* - label: (REQUIRED) The label for the checkbox.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_boolean_operator_string extends views_handler_filter_boolean_operator {
function query() {
diff --git a/handlers/views_handler_filter_date.inc b/handlers/views_handler_filter_date.inc
index 795d601..bb23935 100644
--- a/handlers/views_handler_filter_date.inc
+++ b/handlers/views_handler_filter_date.inc
@@ -2,6 +2,8 @@
/**
* Filter to handle dates stored as a timestamp.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_date extends views_handler_filter_numeric {
function option_definition() {
diff --git a/handlers/views_handler_filter_equality.inc b/handlers/views_handler_filter_equality.inc
index 81fd4eb..5391462 100644
--- a/handlers/views_handler_filter_equality.inc
+++ b/handlers/views_handler_filter_equality.inc
@@ -1,6 +1,8 @@
<?php
/**
* Simple filter to handle equal to / not equal to filters
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_equality extends views_handler_filter {
// exposed filter options
diff --git a/handlers/views_handler_filter_group_by_numeric.inc b/handlers/views_handler_filter_group_by_numeric.inc
index 4a7457a..709dacd 100644
--- a/handlers/views_handler_filter_group_by_numeric.inc
+++ b/handlers/views_handler_filter_group_by_numeric.inc
@@ -2,6 +2,8 @@
/**
* Simple filter to handle greater than/less than filters
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_group_by_numeric extends views_handler_filter_numeric {
function query() {
diff --git a/handlers/views_handler_filter_in_operator.inc b/handlers/views_handler_filter_in_operator.inc
index 610ccd1..5d177ed 100644
--- a/handlers/views_handler_filter_in_operator.inc
+++ b/handlers/views_handler_filter_in_operator.inc
@@ -7,6 +7,7 @@
* - options callback: The function to call in order to generate the value options. If omitted, the options 'Yes' and 'No' will be used.
* - options arguments: An array of arguments to pass to the options callback.
*
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_in_operator extends views_handler_filter {
var $value_form_type = 'checkboxes';
diff --git a/handlers/views_handler_filter_many_to_one.inc b/handlers/views_handler_filter_many_to_one.inc
index 65bc58e..6a72169 100644
--- a/handlers/views_handler_filter_many_to_one.inc
+++ b/handlers/views_handler_filter_many_to_one.inc
@@ -7,6 +7,8 @@
* The construct method needs to be overridden to provide a list of options;
* alternately, the value_form and admin_summary methods need to be overriden
* to provide something that isn't just a select list.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_many_to_one extends views_handler_filter_in_operator {
function init(&$view, $options) {
diff --git a/handlers/views_handler_filter_numeric.inc b/handlers/views_handler_filter_numeric.inc
index 102df98..44e6ece 100644
--- a/handlers/views_handler_filter_numeric.inc
+++ b/handlers/views_handler_filter_numeric.inc
@@ -2,6 +2,8 @@
/**
* Simple filter to handle greater than/less than filters
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_numeric extends views_handler_filter {
var $no_single = TRUE;
diff --git a/handlers/views_handler_filter_string.inc b/handlers/views_handler_filter_string.inc
index cf7ac35..9a59e7b 100644
--- a/handlers/views_handler_filter_string.inc
+++ b/handlers/views_handler_filter_string.inc
@@ -3,6 +3,8 @@
/**
* Basic textfield filter to handle string filtering commands
* including equality, like, not like, etc.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_string extends views_handler_filter {
// exposed filter options
diff --git a/handlers/views_handler_relationship.inc b/handlers/views_handler_relationship.inc
index ff4e89e..2bc6ae4 100644
--- a/handlers/views_handler_relationship.inc
+++ b/handlers/views_handler_relationship.inc
@@ -146,6 +146,8 @@ class views_handler_relationship extends views_handler {
/**
* A special handler to take the place of missing or broken handlers.
+ *
+ * @ingroup views_relationship_handlers
*/
class views_handler_relationship_broken extends views_handler_relationship {
function ui_name($short = FALSE) {
diff --git a/handlers/views_handler_sort.inc b/handlers/views_handler_sort.inc
index 1732f6c..d703b5e 100644
--- a/handlers/views_handler_sort.inc
+++ b/handlers/views_handler_sort.inc
@@ -166,6 +166,8 @@ class views_handler_sort extends views_handler {
/**
* A special handler to take the place of missing or broken handlers.
+ *
+ * @ingroup views_sort_handlers
*/
class views_handler_sort_broken extends views_handler_sort {
function ui_name($short = FALSE) {
diff --git a/handlers/views_handler_sort_group_by_numeric.inc b/handlers/views_handler_sort_group_by_numeric.inc
index 02b8be9..8081fc6 100644
--- a/handlers/views_handler_sort_group_by_numeric.inc
+++ b/handlers/views_handler_sort_group_by_numeric.inc
@@ -1,6 +1,8 @@
<?php
/**
* Handler for GROUP BY on simple numeric fields.
+ *
+ * @ingroup views_sort_handlers
*/
class views_handler_sort_group_by_numeric extends views_handler_sort {
function init(&$view, $options) {
diff --git a/handlers/views_handler_sort_random.inc b/handlers/views_handler_sort_random.inc
index 0a926b3..2a497d7 100644
--- a/handlers/views_handler_sort_random.inc
+++ b/handlers/views_handler_sort_random.inc
@@ -2,6 +2,8 @@
/**
* Handle a random sort.
+ *
+ * @ingroup views_sort_handlers
*/
class views_handler_sort_random extends views_handler_sort {
function query() {
diff --git a/help/api-plugins.html b/help/api-plugins.html
index c0185b7..be5313a 100644
--- a/help/api-plugins.html
+++ b/help/api-plugins.html
@@ -1,6 +1,6 @@
In Views, a plugin is a bit like a handler, but plugins are not directly responsible for building the query. Instead, they are objects that are used to display the view or make other modifications.
-There are 6 types of plugins in Views:
+There are 10 types of plugins in Views:
<dl>
<dt>Display</dt>
<dd>Display plugins are responsible for controlling <strong>where</strong> a view lives. Page and block are the most common displays, as well as the ubiquitous 'default' display which is likely what will be embedded.</dd>
@@ -14,9 +14,28 @@ There are 6 types of plugins in Views:
<dd>Validator plugins can ensure arguments are valid, and even do transformations on the arguments.</dd>
<dt>Access</dt>
<dd>Access plugins are responsible for controlling access to the view.</dd>
+<dt>Query</dt>
+<dd>Query plugins generate and execute a query, it can be seen as a data backend. The default implementation
+is using sql.</dd>
+<dt>Cache</dt>
+<dd>Cache plugins control the storage and loading of caches. Currently they can do both result and render caching,
+but maybe one day cache the generated query</dd>
+<dt>Pager plugins</dt>
+<dd>Pager plugins take care of everything regarding pagers. From getting and setting the total amount of items
+to render the pager and setting the global pager arrays.</dd>
+<dt>Exposed form plugins</dt>
+<dd>Exposed form plugins are responsible for building, rendering and controlling exposed forms. They can expose new
+parts of the view to the user and more.</dd>
+<dt>Localization plugins</dt>
+<dd>Localization plugins take care how the view options are translated. There are example implementations
+for t(), none translation and i18n.</dd>
</dl>
Plugins are registered by implementing <strong>hook_views_plugins()</strong> in your modulename.views.inc file and returning an array of data.
+For examples please look at views_views_plugins() in views/includes/plugins.inc as it has examples
+for all of them.
+
+For example plugins please look at the one provided by views, too.
The array will look something like this:
<pre>
@@ -39,6 +58,21 @@ The array will look something like this:
'access' =&gt; array(
// ... list of access plugins,
),
+ 'query' =&gt; array(
+ // ... list of query plugins,
+ ),,
+ 'cache' =&gt; array(
+ // ... list of cache plugins,
+ ),,
+ 'pager' =&gt; array(
+ // ... list of pager plugins,
+ ),,
+ 'exposed_form' =&gt; array(
+ // ... list of exposed_form plugins,
+ ),,
+ 'localization' =&gt; array(
+ // ... list of localization plugins,
+ ),
);
</pre>
diff --git a/includes/plugins.inc b/includes/plugins.inc
index 5489787..c636e27 100644
--- a/includes/plugins.inc
+++ b/includes/plugins.inc
@@ -469,9 +469,9 @@ class views_plugin extends views_object {
var $view = NULL;
/**
- * The current used display plugin.
+ * The current used views display.
*
- * @var views_plugin_display
+ * @var views_display
*/
var $display = NULL;
diff --git a/includes/view.inc b/includes/view.inc
index 09f9831..ea29090 100644
--- a/includes/view.inc
+++ b/includes/view.inc
@@ -103,6 +103,58 @@ class view extends views_db_object {
var $substitutions = array();
/**
+ * Here comes a list of the possible handler which are active on this view.
+ */
+
+ /**
+ * Stores the field handlers which are initialized on this view.
+ * @var array[views_handler_field]
+ */
+ var $field;
+
+ /**
+ * Stores the argument handlers which are initialized on this view.
+ * @var array[views_handler_argument]
+ */
+ var $argument;
+
+ /**
+ * Stores the sort handlers which are initialized on this view.
+ * @var array[views_handler_sort]
+ */
+ var $sort;
+
+ /**
+ * Stores the filter handlers which are initialized on this view.
+ * @var array[views_handler_filter]
+ */
+ var $filter;
+
+ /**
+ * Stores the relationship handlers which are initialized on this view.
+ * @var array[views_handler_relationship]
+ */
+ var $relationship;
+
+ /**
+ * Stores the area handlers for the header which are initialized on this view.
+ * @var array[views_handler_area]
+ */
+ var $header;
+
+ /**
+ * Stores the area handlers for the footer which are initialized on this view.
+ * @var array[views_handler_area]
+ */
+ var $footer;
+
+ /**
+ * Stores the area handlers for the empty text which are initialized on this view.
+ * @var array[views_handler_area]
+ */
+ var $empty;
+
+ /**
* Constructor
*/
function __construct() {
@@ -1041,19 +1093,17 @@ class view extends views_db_object {
views_set_current_view($this);
$display_id = $this->current_display;
- // Let modules modify the view just prior to executing it.
- foreach (module_implements('views_pre_view') as $module) {
- $function = $module . '_views_pre_view';
- $function($this, $display_id, $args);
- }
-
// Prepare the view with the information we have, but only if we were
// passed arguments, as they may have been set previously.
if ($args) {
$this->set_arguments($args);
}
-// $this->attach_displays();
+ // Let modules modify the view just prior to executing it.
+ foreach (module_implements('views_pre_view') as $module) {
+ $function = $module . '_views_pre_view';
+ $function($this, $display_id, $this->args);
+ }
// Allow the display handler to set up for execution
$this->display_handler->pre_execute();
diff --git a/modules/aggregator/views_handler_argument_aggregator_category_cid.inc b/modules/aggregator/views_handler_argument_aggregator_category_cid.inc
index 7955ac4..7aebfc9 100644
--- a/modules/aggregator/views_handler_argument_aggregator_category_cid.inc
+++ b/modules/aggregator/views_handler_argument_aggregator_category_cid.inc
@@ -2,6 +2,8 @@
/**
* Argument handler to accept an aggregator category id.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_aggregator_category_cid extends views_handler_argument_numeric {
/**
diff --git a/modules/aggregator/views_handler_argument_aggregator_fid.inc b/modules/aggregator/views_handler_argument_aggregator_fid.inc
index 906e5e1..2e17ef0 100644
--- a/modules/aggregator/views_handler_argument_aggregator_fid.inc
+++ b/modules/aggregator/views_handler_argument_aggregator_fid.inc
@@ -2,6 +2,8 @@
/**
* Argument handler to accept an aggregator feed id.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_aggregator_fid extends views_handler_argument_numeric {
/**
diff --git a/modules/aggregator/views_handler_argument_aggregator_iid.inc b/modules/aggregator/views_handler_argument_aggregator_iid.inc
index 2861202..dd0106e 100644
--- a/modules/aggregator/views_handler_argument_aggregator_iid.inc
+++ b/modules/aggregator/views_handler_argument_aggregator_iid.inc
@@ -2,6 +2,8 @@
/**
* Argument handler to accept an aggregator item id.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_aggregator_iid extends views_handler_argument_numeric {
/**
diff --git a/modules/aggregator/views_handler_field_aggregator_category.inc b/modules/aggregator/views_handler_field_aggregator_category.inc
index fb9cfe7..67b3c50 100644
--- a/modules/aggregator/views_handler_field_aggregator_category.inc
+++ b/modules/aggregator/views_handler_field_aggregator_category.inc
@@ -3,6 +3,8 @@
/**
* Field handler to provide simple renderer that allows linking to aggregator
* category.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_aggregator_category extends views_handler_field {
/**
diff --git a/modules/aggregator/views_handler_field_aggregator_title_link.inc b/modules/aggregator/views_handler_field_aggregator_title_link.inc
index 13fc8e1..b9d6587 100644
--- a/modules/aggregator/views_handler_field_aggregator_title_link.inc
+++ b/modules/aggregator/views_handler_field_aggregator_title_link.inc
@@ -3,6 +3,8 @@
/**
* Field handler that turns an item's title into a clickable link to the original
* source article.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_aggregator_title_link extends views_handler_field {
function construct() {
diff --git a/modules/aggregator/views_handler_field_aggregator_xss.inc b/modules/aggregator/views_handler_field_aggregator_xss.inc
index 3fa87c4..0813e35 100644
--- a/modules/aggregator/views_handler_field_aggregator_xss.inc
+++ b/modules/aggregator/views_handler_field_aggregator_xss.inc
@@ -1,9 +1,9 @@
<?php
/**
- * @file
- * Filters htmls tags from item.
+ * Filters htmls tags from item.
+ *
+ * @ingroup views_field_handlers
*/
-
class views_handler_field_aggregator_xss extends views_handler_field {
function render($values) {
$value = $this->get_value($values);
diff --git a/modules/aggregator/views_handler_filter_aggregator_category_cid.inc b/modules/aggregator/views_handler_filter_aggregator_category_cid.inc
index 9afb90f..ef7e128 100644
--- a/modules/aggregator/views_handler_filter_aggregator_category_cid.inc
+++ b/modules/aggregator/views_handler_filter_aggregator_category_cid.inc
@@ -2,6 +2,8 @@
/**
* Filter by aggregator category cid
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_aggregator_category_cid extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/comment/views_handler_argument_comment_user_uid.inc b/modules/comment/views_handler_argument_comment_user_uid.inc
index edc2980..e953b2e 100644
--- a/modules/comment/views_handler_argument_comment_user_uid.inc
+++ b/modules/comment/views_handler_argument_comment_user_uid.inc
@@ -3,6 +3,8 @@
/**
* Argument handler to accept a user id to check for nodes that
* user posted or commented on.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_comment_user_uid extends views_handler_argument {
function title() {
diff --git a/modules/comment/views_handler_field_comment.inc b/modules/comment/views_handler_field_comment.inc
index 792f30b..e75174c 100644
--- a/modules/comment/views_handler_field_comment.inc
+++ b/modules/comment/views_handler_field_comment.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to allow linking to a comment
+ * Field handler to allow linking to a comment.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment extends views_handler_field {
/**
diff --git a/modules/comment/views_handler_field_comment_depth.inc b/modules/comment/views_handler_field_comment_depth.inc
index 17b080a..e1ed8df 100644
--- a/modules/comment/views_handler_field_comment_depth.inc
+++ b/modules/comment/views_handler_field_comment_depth.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to display the depth of a comment
+ * Field handler to display the depth of a comment.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_depth extends views_handler_field {
/**
diff --git a/modules/comment/views_handler_field_comment_link.inc b/modules/comment/views_handler_field_comment_link.inc
index 7752c78..34075c7 100644
--- a/modules/comment/views_handler_field_comment_link.inc
+++ b/modules/comment/views_handler_field_comment_link.inc
@@ -1,6 +1,8 @@
<?php
/**
* Base field handler to present a link.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_link extends views_handler_field {
function construct() {
diff --git a/modules/comment/views_handler_field_comment_link_delete.inc b/modules/comment/views_handler_field_comment_link_delete.inc
index 1efb274..566782e 100644
--- a/modules/comment/views_handler_field_comment_link_delete.inc
+++ b/modules/comment/views_handler_field_comment_link_delete.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link to delete a node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_link_delete extends views_handler_field_comment_link {
function access() {
diff --git a/modules/comment/views_handler_field_comment_link_edit.inc b/modules/comment/views_handler_field_comment_link_edit.inc
index 8761314..bb3a57d 100644
--- a/modules/comment/views_handler_field_comment_link_edit.inc
+++ b/modules/comment/views_handler_field_comment_link_edit.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link node edit.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_link_edit extends views_handler_field_comment_link {
function construct() {
diff --git a/modules/comment/views_handler_field_comment_link_reply.inc b/modules/comment/views_handler_field_comment_link_reply.inc
index 1b922c7..1564164 100644
--- a/modules/comment/views_handler_field_comment_link_reply.inc
+++ b/modules/comment/views_handler_field_comment_link_reply.inc
@@ -2,6 +2,8 @@
/**
* Field handler to present a link to delete a node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_link_reply extends views_handler_field_comment_link {
function access() {
diff --git a/modules/comment/views_handler_field_comment_node_link.inc b/modules/comment/views_handler_field_comment_node_link.inc
index 55d67ba..f64b020 100644
--- a/modules/comment/views_handler_field_comment_node_link.inc
+++ b/modules/comment/views_handler_field_comment_node_link.inc
@@ -1,6 +1,8 @@
<?php
/**
-* Handler for showing comment module's node link.
+ * Handler for showing comment module's node link.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_node_link extends views_handler_field {
function construct() {
diff --git a/modules/comment/views_handler_field_comment_username.inc b/modules/comment/views_handler_field_comment_username.inc
index 418ae8c..a903952 100644
--- a/modules/comment/views_handler_field_comment_username.inc
+++ b/modules/comment/views_handler_field_comment_username.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to allow linking to a user account or homepage
+ * Field handler to allow linking to a user account or homepage.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_comment_username extends views_handler_field {
/**
diff --git a/modules/comment/views_handler_field_last_comment_timestamp.inc b/modules/comment/views_handler_field_last_comment_timestamp.inc
index 64ed7dd..2bfa970 100644
--- a/modules/comment/views_handler_field_last_comment_timestamp.inc
+++ b/modules/comment/views_handler_field_last_comment_timestamp.inc
@@ -1,5 +1,10 @@
<?php
+/**
+ * Field handler to display the timestamp of a comment with the count of comments.
+ *
+ * @ingroup views_field_handlers
+ */
class views_handler_field_last_comment_timestamp extends views_handler_field_date {
function construct() {
parent::construct();
diff --git a/modules/comment/views_handler_field_ncs_last_comment_name.inc b/modules/comment/views_handler_field_ncs_last_comment_name.inc
index b02181d..84a72c8 100644
--- a/modules/comment/views_handler_field_ncs_last_comment_name.inc
+++ b/modules/comment/views_handler_field_ncs_last_comment_name.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Field handler to present the name of the last comment poster
+ * Field handler to present the name of the last comment poster.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_ncs_last_comment_name extends views_handler_field {
function query() {
diff --git a/modules/comment/views_handler_field_ncs_last_updated.inc b/modules/comment/views_handler_field_ncs_last_updated.inc
index 6c3e139..3950ffb 100644
--- a/modules/comment/views_handler_field_ncs_last_updated.inc
+++ b/modules/comment/views_handler_field_ncs_last_updated.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to display the newer of last comment / node updated
+ * Field handler to display the newer of last comment / node updated.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_ncs_last_updated extends views_handler_field_date {
function query() {
diff --git a/modules/comment/views_handler_field_node_comment.inc b/modules/comment/views_handler_field_node_comment.inc
index a720af0..3a00ccb 100644
--- a/modules/comment/views_handler_field_node_comment.inc
+++ b/modules/comment/views_handler_field_node_comment.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Display node comment status
+ * Display node comment status.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_comment extends views_handler_field {
function render($values) {
diff --git a/modules/comment/views_handler_field_node_new_comments.inc b/modules/comment/views_handler_field_node_new_comments.inc
index fdb81bc..9917698 100644
--- a/modules/comment/views_handler_field_node_new_comments.inc
+++ b/modules/comment/views_handler_field_node_new_comments.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Field handler to display the number of new comments
+ * Field handler to display the number of new comments.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_new_comments extends views_handler_field_numeric {
function init(&$view, $options) {
diff --git a/modules/comment/views_handler_filter_comment_user_uid.inc b/modules/comment/views_handler_filter_comment_user_uid.inc
index 0330a00..8959e13 100644
--- a/modules/comment/views_handler_filter_comment_user_uid.inc
+++ b/modules/comment/views_handler_filter_comment_user_uid.inc
@@ -3,6 +3,8 @@
/**
* Filter handler to accept a user id to check for nodes that user posted or
* commented on.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_comment_user_uid extends views_handler_filter_user_name {
function query() {
diff --git a/modules/comment/views_handler_filter_ncs_last_updated.inc b/modules/comment/views_handler_filter_ncs_last_updated.inc
index f931fe9..3818db9 100644
--- a/modules/comment/views_handler_filter_ncs_last_updated.inc
+++ b/modules/comment/views_handler_filter_ncs_last_updated.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter handler for the newer of last comment / node updated
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_ncs_last_updated extends views_handler_filter_date {
function query() {
diff --git a/modules/comment/views_handler_filter_node_comment.inc b/modules/comment/views_handler_filter_node_comment.inc
index 34a70a3..d3b2d5b 100644
--- a/modules/comment/views_handler_filter_node_comment.inc
+++ b/modules/comment/views_handler_filter_node_comment.inc
@@ -2,6 +2,8 @@
/**
* Filter based on comment node status
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_comment extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/comment/views_handler_sort_ncs_last_comment_name.inc b/modules/comment/views_handler_sort_ncs_last_comment_name.inc
index 397bb6c..8eca177 100644
--- a/modules/comment/views_handler_sort_ncs_last_comment_name.inc
+++ b/modules/comment/views_handler_sort_ncs_last_comment_name.inc
@@ -1,7 +1,9 @@
<?php
/**
* Sort handler to sort by last comment name which might be in 2 different
- * fields
+ * fields.
+ *
+ * @ingroup views_sort_handlers
*/
class views_handler_sort_ncs_last_comment_name extends views_handler_sort {
function query() {
diff --git a/modules/comment/views_handler_sort_ncs_last_updated.inc b/modules/comment/views_handler_sort_ncs_last_updated.inc
index 39ab749..04b01a1 100644
--- a/modules/comment/views_handler_sort_ncs_last_updated.inc
+++ b/modules/comment/views_handler_sort_ncs_last_updated.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Sort handler for the newer of last comment / node updated
+ * Sort handler for the newer of last comment / node updated.
+ *
+ * @ingroup views_sort_handlers
*/
class views_handler_sort_ncs_last_updated extends views_handler_sort_date {
function query() {
diff --git a/modules/contact/views_handler_field_contact_link.inc b/modules/contact/views_handler_field_contact_link.inc
index 7aaaa11..019a2a7 100644
--- a/modules/contact/views_handler_field_contact_link.inc
+++ b/modules/contact/views_handler_field_contact_link.inc
@@ -1,6 +1,8 @@
<?php
/**
* A field that links to the user contact page, if access is permitted.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_contact_link extends views_handler_field_user_link {
diff --git a/modules/filter/views_handler_field_filter_format_name.inc b/modules/filter/views_handler_field_filter_format_name.inc
index 69de2ce..48070de 100644
--- a/modules/filter/views_handler_field_filter_format_name.inc
+++ b/modules/filter/views_handler_field_filter_format_name.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to output the name of an input format.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_filter_format_name extends views_handler_field {
function construct() {
diff --git a/modules/locale/views_handler_argument_locale_group.inc b/modules/locale/views_handler_argument_locale_group.inc
index 0b092b4..1525560 100644
--- a/modules/locale/views_handler_argument_locale_group.inc
+++ b/modules/locale/views_handler_argument_locale_group.inc
@@ -2,6 +2,8 @@
/**
* Argument handler to accept a language.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_locale_group extends views_handler_argument {
function construct() {
diff --git a/modules/locale/views_handler_argument_locale_language.inc b/modules/locale/views_handler_argument_locale_language.inc
index 42afbe7..8d4f38c 100644
--- a/modules/locale/views_handler_argument_locale_language.inc
+++ b/modules/locale/views_handler_argument_locale_language.inc
@@ -2,6 +2,8 @@
/**
* Argument handler to accept a language.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_locale_language extends views_handler_argument {
function construct() {
diff --git a/modules/locale/views_handler_field_locale_group.inc b/modules/locale/views_handler_field_locale_group.inc
index a8e7a32..22339e8 100644
--- a/modules/locale/views_handler_field_locale_group.inc
+++ b/modules/locale/views_handler_field_locale_group.inc
@@ -2,6 +2,8 @@
/**
* Field handler to translate a group into its readable form.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_locale_group extends views_handler_field {
function render($values) {
diff --git a/modules/locale/views_handler_field_locale_language.inc b/modules/locale/views_handler_field_locale_language.inc
index 140c23a..0ff36a8 100644
--- a/modules/locale/views_handler_field_locale_language.inc
+++ b/modules/locale/views_handler_field_locale_language.inc
@@ -2,6 +2,8 @@
/**
* Field handler to translate a language into its readable form.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_locale_language extends views_handler_field {
function option_definition() {
diff --git a/modules/locale/views_handler_field_locale_link_edit.inc b/modules/locale/views_handler_field_locale_link_edit.inc
index a449b12..5466446 100644
--- a/modules/locale/views_handler_field_locale_link_edit.inc
+++ b/modules/locale/views_handler_field_locale_link_edit.inc
@@ -2,6 +2,8 @@
/**
* Field handler to present a link to edit a translation.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_locale_link_edit extends views_handler_field {
function construct() {
diff --git a/modules/locale/views_handler_filter_locale_group.inc b/modules/locale/views_handler_filter_locale_group.inc
index 75820ed..1941549 100644
--- a/modules/locale/views_handler_filter_locale_group.inc
+++ b/modules/locale/views_handler_filter_locale_group.inc
@@ -2,6 +2,8 @@
/**
* Filter by locale group.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_locale_group extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/locale/views_handler_filter_locale_language.inc b/modules/locale/views_handler_filter_locale_language.inc
index ee6c07a..d26afe4 100644
--- a/modules/locale/views_handler_filter_locale_language.inc
+++ b/modules/locale/views_handler_filter_locale_language.inc
@@ -2,6 +2,8 @@
/**
* Filter by language.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_locale_language extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/locale/views_handler_filter_locale_version.inc b/modules/locale/views_handler_filter_locale_version.inc
index 5598648..e9c2975 100644
--- a/modules/locale/views_handler_filter_locale_version.inc
+++ b/modules/locale/views_handler_filter_locale_version.inc
@@ -2,6 +2,8 @@
/**
* Filter by version.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_locale_version extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/node/views_handler_field_history_user_timestamp.inc b/modules/node/views_handler_field_history_user_timestamp.inc
index bf5e79e..8286c4f 100644
--- a/modules/node/views_handler_field_history_user_timestamp.inc
+++ b/modules/node/views_handler_field_history_user_timestamp.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to display the marker for new content.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_history_user_timestamp extends views_handler_field_node {
function init(&$view, $options) {
diff --git a/modules/node/views_handler_field_node.inc b/modules/node/views_handler_field_node.inc
index 97facc3..6085081 100644
--- a/modules/node/views_handler_field_node.inc
+++ b/modules/node/views_handler_field_node.inc
@@ -8,6 +8,8 @@
* Field handler to provide simple renderer that allows linking to a node.
* Definition terms:
* - link_to_node default: Should this field have the checkbox "link to node" enabled by default.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node extends views_handler_field {
diff --git a/modules/node/views_handler_field_node_link.inc b/modules/node/views_handler_field_node_link.inc
index 5a450b4..81480f9 100644
--- a/modules/node/views_handler_field_node_link.inc
+++ b/modules/node/views_handler_field_node_link.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link to the node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_link extends views_handler_field {
function construct() {
diff --git a/modules/node/views_handler_field_node_link_delete.inc b/modules/node/views_handler_field_node_link_delete.inc
index 31bdbf6..e991138 100644
--- a/modules/node/views_handler_field_node_link_delete.inc
+++ b/modules/node/views_handler_field_node_link_delete.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link to delete a node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_link_delete extends views_handler_field_node_link {
function construct() {
diff --git a/modules/node/views_handler_field_node_link_edit.inc b/modules/node/views_handler_field_node_link_edit.inc
index 0b855c5..e454a63 100644
--- a/modules/node/views_handler_field_node_link_edit.inc
+++ b/modules/node/views_handler_field_node_link_edit.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link node edit.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_link_edit extends views_handler_field_node_link {
function construct() {
diff --git a/modules/node/views_handler_field_node_path.inc b/modules/node/views_handler_field_node_path.inc
index b9a62fb..de7dc9b 100644
--- a/modules/node/views_handler_field_node_path.inc
+++ b/modules/node/views_handler_field_node_path.inc
@@ -2,6 +2,8 @@
// $Id:
/**
* Field handler to present the path to the node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_path extends views_handler_field {
diff --git a/modules/node/views_handler_field_node_revision.inc b/modules/node/views_handler_field_node_revision.inc
index 17cc3c5..85dca27 100644
--- a/modules/node/views_handler_field_node_revision.inc
+++ b/modules/node/views_handler_field_node_revision.inc
@@ -1,9 +1,13 @@
<?php
/**
- * @file
* Contains the basic 'node_revision' field handler.
*/
+/**
+ * A basic node_revision handler.
+ *
+ * @ingroup views_field_handlers
+ */
class views_handler_field_node_revision extends views_handler_field_node {
function init(&$view, $options) {
parent::init($view, $options);
diff --git a/modules/node/views_handler_field_node_revision_link_delete.inc b/modules/node/views_handler_field_node_revision_link_delete.inc
index 44750c0..5701fd7 100644
--- a/modules/node/views_handler_field_node_revision_link_delete.inc
+++ b/modules/node/views_handler_field_node_revision_link_delete.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present delete a node revision.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_revision_link_delete extends views_handler_field_node_link {
function construct() {
diff --git a/modules/node/views_handler_field_node_revision_link_revert.inc b/modules/node/views_handler_field_node_revision_link_revert.inc
index 56cbed1..1a62609 100644
--- a/modules/node/views_handler_field_node_revision_link_revert.inc
+++ b/modules/node/views_handler_field_node_revision_link_revert.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to present a link to revert a node to a revision
+ * Field handler to present a link to revert a node to a revision.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_revision_link_revert extends views_handler_field_node_link {
function construct() {
diff --git a/modules/node/views_handler_field_node_type.inc b/modules/node/views_handler_field_node_type.inc
index be03cb4..5e58e6d 100644
--- a/modules/node/views_handler_field_node_type.inc
+++ b/modules/node/views_handler_field_node_type.inc
@@ -2,6 +2,8 @@
/**
* Field handler to translate a node type into its readable form.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_type extends views_handler_field_node {
diff --git a/modules/node/views_handler_filter_history_user_timestamp.inc b/modules/node/views_handler_filter_history_user_timestamp.inc
index c908221..d8b1b53 100644
--- a/modules/node/views_handler_filter_history_user_timestamp.inc
+++ b/modules/node/views_handler_filter_history_user_timestamp.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter for new content
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_history_user_timestamp extends views_handler_filter {
// Don't display empty space where the operator would be.
diff --git a/modules/node/views_handler_filter_node_access.inc b/modules/node/views_handler_filter_node_access.inc
index f787aee..308da4d 100644
--- a/modules/node/views_handler_filter_node_access.inc
+++ b/modules/node/views_handler_filter_node_access.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter by node_access records.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_access extends views_handler_filter {
function admin_summary() { }
diff --git a/modules/node/views_handler_filter_node_status.inc b/modules/node/views_handler_filter_node_status.inc
index 7047caa..87390eb 100644
--- a/modules/node/views_handler_filter_node_status.inc
+++ b/modules/node/views_handler_filter_node_status.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter by published status
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_status extends views_handler_filter {
function admin_summary() { }
diff --git a/modules/node/views_handler_filter_node_type.inc b/modules/node/views_handler_filter_node_type.inc
index 1f460f6..84b7d3d 100644
--- a/modules/node/views_handler_filter_node_type.inc
+++ b/modules/node/views_handler_filter_node_type.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter by node type
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_type extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/node/views_handler_filter_node_uid_revision.inc b/modules/node/views_handler_filter_node_uid_revision.inc
index a8a2ce1..38071f1 100644
--- a/modules/node/views_handler_filter_node_uid_revision.inc
+++ b/modules/node/views_handler_filter_node_uid_revision.inc
@@ -1,8 +1,13 @@
<?php
-// $Id$
/**
* @file
+ * Contains handler views_handler_filter_node_uid_revision.
+ */
+
+/**
* Filter handler to check for revisions a certain user has created.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_uid_revision extends views_handler_filter_user_name {
function query($group_by = FALSE) {
diff --git a/modules/profile/views_handler_field_profile_date.inc b/modules/profile/views_handler_field_profile_date.inc
index 6c1cc66..e6b5fbc 100644
--- a/modules/profile/views_handler_field_profile_date.inc
+++ b/modules/profile/views_handler_field_profile_date.inc
@@ -4,6 +4,8 @@
*
* The dates are stored serialized, which makes them mostly useless from
* SQL. About all we can do is unserialize and display them.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_profile_date extends views_handler_field_date {
function options_form(&$form, &$form_state) {
diff --git a/modules/profile/views_handler_field_profile_list.inc b/modules/profile/views_handler_field_profile_list.inc
index cf4eaa8..a5c20a6 100644
--- a/modules/profile/views_handler_field_profile_list.inc
+++ b/modules/profile/views_handler_field_profile_list.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler display a profile list item.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_profile_list extends views_handler_field_prerender_list {
/**
diff --git a/modules/profile/views_handler_filter_profile_selection.inc b/modules/profile/views_handler_filter_profile_selection.inc
index 77c34f4..9906753 100644
--- a/modules/profile/views_handler_filter_profile_selection.inc
+++ b/modules/profile/views_handler_filter_profile_selection.inc
@@ -2,6 +2,8 @@
/**
* Filter by a selection widget in the profile.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_profile_selection extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/search/views_handler_argument_search.inc b/modules/search/views_handler_argument_search.inc
index 35744c0..2be8e4d 100644
--- a/modules/search/views_handler_argument_search.inc
+++ b/modules/search/views_handler_argument_search.inc
@@ -2,6 +2,8 @@
/**
* Argument that accepts query keys for search.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_search extends views_handler_argument {
diff --git a/modules/search/views_handler_field_search_score.inc b/modules/search/views_handler_field_search_score.inc
index bbc6a07..8203ece 100644
--- a/modules/search/views_handler_field_search_score.inc
+++ b/modules/search/views_handler_field_search_score.inc
@@ -2,6 +2,8 @@
/**
* Field handler to provide simple renderer that allows linking to a node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_search_score extends views_handler_field_numeric {
function option_definition() {
diff --git a/modules/search/views_handler_filter_search.inc b/modules/search/views_handler_filter_search.inc
index 043e20e..95d14e8 100644
--- a/modules/search/views_handler_filter_search.inc
+++ b/modules/search/views_handler_filter_search.inc
@@ -2,6 +2,8 @@
/**
* Field handler to provide simple renderer that allows linking to a node.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_search extends views_handler_filter {
var $no_single = TRUE;
diff --git a/modules/search/views_handler_sort_search_score.inc b/modules/search/views_handler_sort_search_score.inc
index b34a60b..614d83a 100644
--- a/modules/search/views_handler_sort_search_score.inc
+++ b/modules/search/views_handler_sort_search_score.inc
@@ -2,6 +2,8 @@
/**
* Field handler to provide simple renderer that allows linking to a node.
+ *
+ * @ingroup views_sort_handlers
*/
class views_handler_sort_search_score extends views_handler_sort {
function query() {
diff --git a/modules/statistics/views_handler_field_accesslog_path.inc b/modules/statistics/views_handler_field_accesslog_path.inc
index ad70780..6476ac0 100644
--- a/modules/statistics/views_handler_field_accesslog_path.inc
+++ b/modules/statistics/views_handler_field_accesslog_path.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to provide simple renderer that turns a URL into a clickable link.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_accesslog_path extends views_handler_field {
/**
diff --git a/modules/system/views_handler_argument_file_fid.inc b/modules/system/views_handler_argument_file_fid.inc
index e5939c8..993bb1a 100644
--- a/modules/system/views_handler_argument_file_fid.inc
+++ b/modules/system/views_handler_argument_file_fid.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Argument handler to accept a file id.
+ * Argument handler to accept multiple file ids.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_file_fid extends views_handler_argument_numeric {
/**
diff --git a/modules/system/views_handler_field_file.inc b/modules/system/views_handler_field_file.inc
index b064a49..38688ec 100644
--- a/modules/system/views_handler_field_file.inc
+++ b/modules/system/views_handler_field_file.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to provide simple renderer that allows linking to a file.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_file extends views_handler_field {
/**
diff --git a/modules/system/views_handler_field_file_extension.inc b/modules/system/views_handler_field_file_extension.inc
index f26dee8..e64fbc9 100644
--- a/modules/system/views_handler_field_file_extension.inc
+++ b/modules/system/views_handler_field_file_extension.inc
@@ -1,9 +1,9 @@
<?php
+
/**
- * @file
* Returns a pure file extension of the file, for example 'module'.
+ * @ingroup views_field_handlers
*/
-
class views_handler_field_file_extension extends views_handler_field {
function render($values) {
$value = $this->get_value($values);
diff --git a/modules/system/views_handler_field_file_status.inc b/modules/system/views_handler_field_file_status.inc
index 8b42aa8..84d9148 100644
--- a/modules/system/views_handler_field_file_status.inc
+++ b/modules/system/views_handler_field_file_status.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to translate a node type into its readable form.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_file_status extends views_handler_field {
function render($values) {
diff --git a/modules/system/views_handler_filter_file_status.inc b/modules/system/views_handler_filter_file_status.inc
index e24531a..3133755 100644
--- a/modules/system/views_handler_filter_file_status.inc
+++ b/modules/system/views_handler_filter_file_status.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Filter by file status
+ * Filter by file status.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_file_status extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/taxonomy/views_handler_argument_taxonomy.inc b/modules/taxonomy/views_handler_argument_taxonomy.inc
index 10fb924..96f9c27 100644
--- a/modules/taxonomy/views_handler_argument_taxonomy.inc
+++ b/modules/taxonomy/views_handler_argument_taxonomy.inc
@@ -2,6 +2,8 @@
/**
* Argument handler for basic taxonomy tid.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_taxonomy extends views_handler_argument_numeric {
diff --git a/modules/taxonomy/views_handler_argument_term_node_tid.inc b/modules/taxonomy/views_handler_argument_term_node_tid.inc
index 58d648d..aead304 100644
--- a/modules/taxonomy/views_handler_argument_term_node_tid.inc
+++ b/modules/taxonomy/views_handler_argument_term_node_tid.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Allow taxonomy term ID(s) as argument
+ * Allow taxonomy term ID(s) as argument.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_term_node_tid extends views_handler_argument_many_to_one {
function option_definition() {
diff --git a/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc b/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
index 1116468..1eafe71 100644
--- a/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
+++ b/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
@@ -3,7 +3,9 @@
* Argument handler for taxonomy terms with depth.
*
* This handler is actually part of the node table and has some restrictions,
- * because it uses a subquery to find nodes with
+ * because it uses a subquery to find nodes with.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_term_node_tid_depth extends views_handler_argument {
function option_definition() {
diff --git a/modules/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc b/modules/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc
index 63d0342..5743dd5 100644
--- a/modules/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc
+++ b/modules/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc
@@ -4,7 +4,9 @@
* Argument handler for to modify depth for a previous term.
*
* This handler is actually part of the node table and has some restrictions,
- * because it uses a subquery to find nodes with
+ * because it uses a subquery to find nodes with.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_term_node_tid_depth_modifier extends views_handler_argument {
function options_form(&$form, &$form_state) { }
diff --git a/modules/taxonomy/views_handler_argument_vocabulary_vid.inc b/modules/taxonomy/views_handler_argument_vocabulary_vid.inc
index cfdb50f..0449906 100644
--- a/modules/taxonomy/views_handler_argument_vocabulary_vid.inc
+++ b/modules/taxonomy/views_handler_argument_vocabulary_vid.inc
@@ -2,6 +2,8 @@
/**
* Argument handler to accept a vocabulary id.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_vocabulary_vid extends views_handler_argument_numeric {
/**
diff --git a/modules/taxonomy/views_handler_field_taxonomy.inc b/modules/taxonomy/views_handler_field_taxonomy.inc
index 0093b04..cfdfc08 100644
--- a/modules/taxonomy/views_handler_field_taxonomy.inc
+++ b/modules/taxonomy/views_handler_field_taxonomy.inc
@@ -3,6 +3,8 @@
/**
* Field handler to provide simple renderer that allows linking to a taxonomy
* term.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_taxonomy extends views_handler_field {
/**
diff --git a/modules/taxonomy/views_handler_field_term_link_edit.inc b/modules/taxonomy/views_handler_field_term_link_edit.inc
index c5490ce..a727356 100644
--- a/modules/taxonomy/views_handler_field_term_link_edit.inc
+++ b/modules/taxonomy/views_handler_field_term_link_edit.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Field handler to present a term edit link .
+ * Field handler to present a term edit link.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_term_link_edit extends views_handler_field {
function construct() {
diff --git a/modules/taxonomy/views_handler_field_term_node_tid.inc b/modules/taxonomy/views_handler_field_term_node_tid.inc
index 10becde..a6e625b 100644
--- a/modules/taxonomy/views_handler_field_term_node_tid.inc
+++ b/modules/taxonomy/views_handler_field_term_node_tid.inc
@@ -1,8 +1,9 @@
<?php
/**
- * @file
* Field handler to display all taxonomy terms of a node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_term_node_tid extends views_handler_field_prerender_list {
function init(&$view, $options) {
diff --git a/modules/taxonomy/views_handler_filter_term_node_tid.inc b/modules/taxonomy/views_handler_filter_term_node_tid.inc
index 5c440c3..255fe8e 100644
--- a/modules/taxonomy/views_handler_filter_term_node_tid.inc
+++ b/modules/taxonomy/views_handler_filter_term_node_tid.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Filter by term id
+ * Filter by term id.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_term_node_tid extends views_handler_filter_many_to_one {
function can_group() { return FALSE; }
@@ -165,7 +167,7 @@ class views_handler_filter_term_node_tid extends views_handler_filter_many_to_on
'#default_value' => $default_value,
);
- if (!empty($form_state['exposed']) && !isset($form_state['input'][$identifier])) {
+ if (!empty($form_state['exposed']) && isset($identifier) && !isset($form_state['input'][$identifier])) {
$form_state['input'][$identifier] = $default_value;
}
}
diff --git a/modules/taxonomy/views_handler_filter_term_node_tid_depth.inc b/modules/taxonomy/views_handler_filter_term_node_tid_depth.inc
index 2bfd52d..368bb99 100644
--- a/modules/taxonomy/views_handler_filter_term_node_tid_depth.inc
+++ b/modules/taxonomy/views_handler_filter_term_node_tid_depth.inc
@@ -3,7 +3,9 @@
* Filter handler for taxonomy terms with depth.
*
* This handler is actually part of the node table and has some restrictions,
- * because it uses a subquery to find nodes with
+ * because it uses a subquery to find nodes with.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_term_node_tid_depth extends views_handler_filter_term_node_tid {
function operator_options() {
diff --git a/modules/taxonomy/views_handler_filter_vocabulary_vid.inc b/modules/taxonomy/views_handler_filter_vocabulary_vid.inc
index cb624dc..a02f7b2 100644
--- a/modules/taxonomy/views_handler_filter_vocabulary_vid.inc
+++ b/modules/taxonomy/views_handler_filter_vocabulary_vid.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Filter by vocabulary id
+ * Filter by vocabulary id.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_vocabulary_vid extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/taxonomy/views_handler_relationship_node_term_data.inc b/modules/taxonomy/views_handler_relationship_node_term_data.inc
index bce896a..aed7e96 100644
--- a/modules/taxonomy/views_handler_relationship_node_term_data.inc
+++ b/modules/taxonomy/views_handler_relationship_node_term_data.inc
@@ -4,6 +4,12 @@
* Views' relationship handlers.
*/
+
+/**
+ * Relationship handler to return the taxonomy terms of nodes.
+ *
+ * @ingroup views_relationship_handlers
+ */
class views_handler_relationship_node_term_data extends views_handler_relationship {
function option_definition() {
$options = parent::option_definition();
diff --git a/modules/translation/views_handler_argument_node_tnid.inc b/modules/translation/views_handler_argument_node_tnid.inc
index b859a6c..9ff2d0f 100644
--- a/modules/translation/views_handler_argument_node_tnid.inc
+++ b/modules/translation/views_handler_argument_node_tnid.inc
@@ -6,6 +6,8 @@
/**
* Argument handler to accept a node translation id.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_node_tnid extends views_handler_argument_numeric {
/**
diff --git a/modules/translation/views_handler_field_node_language.inc b/modules/translation/views_handler_field_node_language.inc
index 93bd883..b2e8d9c 100644
--- a/modules/translation/views_handler_field_node_language.inc
+++ b/modules/translation/views_handler_field_node_language.inc
@@ -2,6 +2,8 @@
/**
* Field handler to translate a language into its readable form.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_language extends views_handler_field_node {
function option_definition() {
diff --git a/modules/translation/views_handler_field_node_link_translate.inc b/modules/translation/views_handler_field_node_link_translate.inc
index fe7b3f5..88bb1e7 100644
--- a/modules/translation/views_handler_field_node_link_translate.inc
+++ b/modules/translation/views_handler_field_node_link_translate.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link node translate.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_link_translate extends views_handler_field_node_link {
function construct() {
diff --git a/modules/translation/views_handler_field_node_translation_link.inc b/modules/translation/views_handler_field_node_translation_link.inc
index cefeec0..537ba60 100644
--- a/modules/translation/views_handler_field_node_translation_link.inc
+++ b/modules/translation/views_handler_field_node_translation_link.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link to the node.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_node_translation_link extends views_handler_field {
function construct() {
diff --git a/modules/translation/views_handler_filter_node_language.inc b/modules/translation/views_handler_filter_node_language.inc
index 92c81a0..0e58377 100644
--- a/modules/translation/views_handler_filter_node_language.inc
+++ b/modules/translation/views_handler_filter_node_language.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Filter by language
+ * Filter by language.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_language extends views_handler_filter_in_operator {
function get_value_options() {
diff --git a/modules/translation/views_handler_filter_node_tnid.inc b/modules/translation/views_handler_filter_node_tnid.inc
index ed96e63..e96fe26 100644
--- a/modules/translation/views_handler_filter_node_tnid.inc
+++ b/modules/translation/views_handler_filter_node_tnid.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter by whether the node is the original translation.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_tnid extends views_handler_filter {
function admin_summary() { }
diff --git a/modules/translation/views_handler_filter_node_tnid_child.inc b/modules/translation/views_handler_filter_node_tnid_child.inc
index c776480..593913e 100644
--- a/modules/translation/views_handler_filter_node_tnid_child.inc
+++ b/modules/translation/views_handler_filter_node_tnid_child.inc
@@ -1,6 +1,8 @@
<?php
/**
* Filter by whether the node is not the original translation.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_node_tnid_child extends views_handler_filter {
function admin_summary() { }
diff --git a/modules/translation/views_handler_relationship_translation.inc b/modules/translation/views_handler_relationship_translation.inc
index ab47132..b7d2641 100644
--- a/modules/translation/views_handler_relationship_translation.inc
+++ b/modules/translation/views_handler_relationship_translation.inc
@@ -3,6 +3,8 @@
/**
* Handles relationships for content translation sets and provides multiple
* options.
+ *
+ * @ingroup views_relationship_handlers
*/
class views_handler_relationship_translation extends views_handler_relationship {
function option_definition() {
diff --git a/modules/user/views_handler_argument_user_uid.inc b/modules/user/views_handler_argument_user_uid.inc
index 67a65a8..77ad169 100644
--- a/modules/user/views_handler_argument_user_uid.inc
+++ b/modules/user/views_handler_argument_user_uid.inc
@@ -6,6 +6,8 @@
/**
* Argument handler to accept a user id.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_user_uid extends views_handler_argument_numeric {
/**
diff --git a/modules/user/views_handler_argument_users_roles_rid.inc b/modules/user/views_handler_argument_users_roles_rid.inc
index 92a5513..dcb8d21 100644
--- a/modules/user/views_handler_argument_users_roles_rid.inc
+++ b/modules/user/views_handler_argument_users_roles_rid.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Allow role ID(s) as argument
+ * Allow role ID(s) as argument.
+ *
+ * @ingroup views_argument_handlers
*/
class views_handler_argument_users_roles_rid extends views_handler_argument_many_to_one {
function title_query() {
diff --git a/modules/user/views_handler_field_user.inc b/modules/user/views_handler_field_user.inc
index 279d094..9371d54 100644
--- a/modules/user/views_handler_field_user.inc
+++ b/modules/user/views_handler_field_user.inc
@@ -2,6 +2,8 @@
/**
* Field handler to provide simple renderer that allows linking to a user.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user extends views_handler_field {
/**
diff --git a/modules/user/views_handler_field_user_language.inc b/modules/user/views_handler_field_user_language.inc
index 3d3e722..96b784b 100644
--- a/modules/user/views_handler_field_user_language.inc
+++ b/modules/user/views_handler_field_user_language.inc
@@ -1,9 +1,10 @@
<?php
+
/**
- * @file
- * Views field handler for userlanguage.
+ * Views field handler for user language.
+ *
+ * @ingroup views_field_handlers
*/
-
class views_handler_field_user_language extends views_handler_field_user {
function render_link($data, $values) {
diff --git a/modules/user/views_handler_field_user_link.inc b/modules/user/views_handler_field_user_link.inc
index 9355911..7ed8bc1 100644
--- a/modules/user/views_handler_field_user_link.inc
+++ b/modules/user/views_handler_field_user_link.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link to the user.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user_link extends views_handler_field {
function construct() {
diff --git a/modules/user/views_handler_field_user_link_edit.inc b/modules/user/views_handler_field_user_link_edit.inc
index bdeecf0..4f25bf6 100644
--- a/modules/user/views_handler_field_user_link_edit.inc
+++ b/modules/user/views_handler_field_user_link_edit.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to present a link to user edit.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user_link_edit extends views_handler_field_user_link {
function render_link($data, $values) {
diff --git a/modules/user/views_handler_field_user_mail.inc b/modules/user/views_handler_field_user_mail.inc
index 692b6b3..8408e64 100644
--- a/modules/user/views_handler_field_user_mail.inc
+++ b/modules/user/views_handler_field_user_mail.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to provide acess control for the email field
+ * Field handler to provide acess control for the email field.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user_mail extends views_handler_field_user {
function option_definition() {
diff --git a/modules/user/views_handler_field_user_name.inc b/modules/user/views_handler_field_user_name.inc
index c5f8370..6875d82 100644
--- a/modules/user/views_handler_field_user_name.inc
+++ b/modules/user/views_handler_field_user_name.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Field handler to provide simple renderer that allows using a themed user link
+ * Field handler to provide simple renderer that allows using a themed user link.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user_name extends views_handler_field_user {
/**
diff --git a/modules/user/views_handler_field_user_picture.inc b/modules/user/views_handler_field_user_picture.inc
index 082d735..2e9dc50 100644
--- a/modules/user/views_handler_field_user_picture.inc
+++ b/modules/user/views_handler_field_user_picture.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Field handler to provide simple renderer that allows using a themed user link
+ * Field handler to provide simple renderer that allows using a themed user link.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user_picture extends views_handler_field {
function construct() {
diff --git a/modules/user/views_handler_field_user_roles.inc b/modules/user/views_handler_field_user_roles.inc
index 96cb692..dc26751 100644
--- a/modules/user/views_handler_field_user_roles.inc
+++ b/modules/user/views_handler_field_user_roles.inc
@@ -1,6 +1,8 @@
<?php
/**
* Field handler to provide a list of roles.
+ *
+ * @ingroup views_field_handlers
*/
class views_handler_field_user_roles extends views_handler_field_prerender_list {
function construct() {
diff --git a/modules/user/views_handler_filter_user_current.inc b/modules/user/views_handler_filter_user_current.inc
index 4c42aa5..c5d0c56 100644
--- a/modules/user/views_handler_filter_user_current.inc
+++ b/modules/user/views_handler_filter_user_current.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Filter handler for the current user
+ * Filter handler for the current user.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_user_current extends views_handler_filter_boolean_operator {
function construct() {
diff --git a/modules/user/views_handler_filter_user_name.inc b/modules/user/views_handler_filter_user_name.inc
index addfd82..350e06b 100644
--- a/modules/user/views_handler_filter_user_name.inc
+++ b/modules/user/views_handler_filter_user_name.inc
@@ -1,7 +1,9 @@
<?php
/**
- * Filter handler for usernames
+ * Filter handler for usernames.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_user_name extends views_handler_filter_in_operator {
var $no_single = TRUE;
diff --git a/modules/user/views_handler_filter_user_roles.inc b/modules/user/views_handler_filter_user_roles.inc
index 3442aa9..cdfd93e 100644
--- a/modules/user/views_handler_filter_user_roles.inc
+++ b/modules/user/views_handler_filter_user_roles.inc
@@ -1,6 +1,8 @@
<?php
/**
- * Filter handler for user roles
+ * Filter handler for user roles.
+ *
+ * @ingroup views_filter_handlers
*/
class views_handler_filter_user_roles extends views_handler_filter_many_to_one {
function get_value_options() {
diff --git a/plugins/views_plugin_display.inc b/plugins/views_plugin_display.inc
index 64a125e..663ab76 100644
--- a/plugins/views_plugin_display.inc
+++ b/plugins/views_plugin_display.inc
@@ -1003,7 +1003,7 @@ class views_plugin_display extends views_plugin {
'desc' => t('Change the name of this display.'),
);
- $display_comment = drupal_substr($this->get_option('display_comment'), 0, 10);
+ $display_comment = check_plain(drupal_substr($this->get_option('display_comment'), 0, 10));
$options['display_comment'] = array(
'category' => 'basic',
'title' => t('Comment'),
@@ -1578,6 +1578,7 @@ class views_plugin_display extends views_plugin {
// Default text.
// We have some options, so make a list.
+ $output = '';
if (!empty($options)) {
$output = t('<p>The following tokens are available for this link.</p>');
foreach (array_keys($options) as $type) {
diff --git a/plugins/views_plugin_style_table.inc b/plugins/views_plugin_style_table.inc
index 577db21..4fbb32a 100644
--- a/plugins/views_plugin_style_table.inc
+++ b/plugins/views_plugin_style_table.inc
@@ -10,6 +10,19 @@
* @ingroup views_style_plugins
*/
class views_plugin_style_table extends views_plugin_style {
+
+ /**
+ * Contains the current active sort column.
+ * @var string
+ */
+ public $active;
+
+ /**
+ * Contains the current active sort order, either desc or asc.
+ * @var string
+ */
+ public $order;
+
function option_definition() {
$options = parent::option_definition();
@@ -26,7 +39,9 @@ class views_plugin_style_table extends views_plugin_style {
}
/**
- * Determine if we should provide sorting based upon $_GET inputs.
+ * Determine if we should provide sorting based upon $_GET inputs
+ *
+ * @return bool
*/
function build_sort() {
if (!isset($_GET['order']) && ($this->options['default'] == -1 || empty($this->view->field[$this->options['default']]))) {
@@ -102,13 +117,15 @@ class views_plugin_style_table extends views_plugin_style {
* be requested from the current display. The running render should
* send the fields through, as they may be different than what the
* display has listed due to access control or other changes.
+ *
+ * @return array
+ * An array of all the sanitized columns.
*/
function sanitize_columns($columns, $fields = NULL) {
$sanitized = array();
if ($fields === NULL) {
$fields = $this->display->handler->get_option('fields');
}
-
// Preconfigure the sanitized array so that the order is retained.
foreach ($fields as $field => $info) {
// Set to itself so that if it isn't touched, it gets column
@@ -168,6 +185,7 @@ class views_plugin_style_table extends views_plugin_style {
'#title' => t('Table summary'),
'#description' => t('This value will be displayed as table-summary attribute in the html. Set this for better accessiblity of your site.'),
'#default_value' => $this->options['summary'],
+ '#maxlength' => 255,
);
// Note: views UI registers this theme handler on our behalf. Your module
diff --git a/theme/theme.inc b/theme/theme.inc
index f4a1a46..5cdd1e9 100644
--- a/theme/theme.inc
+++ b/theme/theme.inc
@@ -413,8 +413,6 @@ function template_preprocess_views_view_table(&$vars) {
}
$query = empty($query) ? '' : '&' . http_build_query($query, '', '&');
- $header = array();
-
// Fields must be rendered in order as of Views 2.3, so we will pre-render
// everything.
$renders = $handler->render_fields($result);
@@ -817,7 +815,7 @@ function template_preprocess_views_exposed_form(&$vars) {
// set up defaults so that there's always something there.
$widget->label = $widget->operator = $widget->widget = NULL;
- $widget->id = $form[$info['value']]['#id'];
+ $widget->id = isset($form[$info['value']]['#id']) ? $form[$info['value']]['#id'] : '';
if (!empty($info['label'])) {
$widget->label = $info['label'];
}
@@ -833,6 +831,7 @@ function template_preprocess_views_exposed_form(&$vars) {
$widget = new stdClass;
// set up defaults so that there's always something there.
$widget->label = $widget->operator = $widget->widget = NULL;
+ $widget->id = 'checkboxes';
$widget->widget = $checkboxes;
$vars['widgets']['checkboxes'] = $widget;
}
diff --git a/views.module b/views.module
index 37c82a1..75392a7 100644
--- a/views.module
+++ b/views.module
@@ -857,6 +857,7 @@ function views_include_default_views($reset = FALSE) {
function views_get_handler($table, $field, $key, $override = NULL) {
$data = views_fetch_data($table);
$handler = NULL;
+ views_include('handlers');
if (isset($data[$field][$key])) {
// Set up a default handler:
@@ -1743,7 +1744,7 @@ function views_microtime() {
* @param $alter
* - max_length: Maximum lenght of the string, the rest gets truncated.
* - word_boundary: Trim only on a word boundary.
- * - ellipsis: Trim only on a word boundary.
+ * - ellipsis: Show an ellipsis (...) at the end of the trimmed string.
* - html: Take sure that the html is correct.
*/
function views_trim_text($alter, $value) {