diff --git a/handlers/views_handler_area.inc b/handlers/views_handler_area.inc
index b3a7457..860b8ae 100644
--- a/handlers/views_handler_area.inc
+++ b/handlers/views_handler_area.inc
@@ -63,7 +63,7 @@ class views_handler_area extends views_handler {
   /**
    * Don't run a query
    */
-  function query() { }
+  function query($group_by = FALSE) { }
 
   /**
    * Render the area
@@ -91,7 +91,7 @@ class views_handler_area_broken extends views_handler_area {
   }
 
   function ensure_my_table() { /* No table to ensure! */ }
-  function query() { /* No query to run */ }
+  function query($group_by = FALSE) { /* No query to run */ }
   function render($empty = FALSE) { return ''; }
   function options_form(&$form, &$form_state) {
     $form['markup'] = array(
diff --git a/handlers/views_handler_area_text.inc b/handlers/views_handler_area_text.inc
index 93c5834..56ddbc2 100644
--- a/handlers/views_handler_area_text.inc
+++ b/handlers/views_handler_area_text.inc
@@ -80,7 +80,7 @@ class views_handler_area_text extends views_handler_area {
     }
   }
 
-  function options_submit(&$form, &$form_state) {
+  function options_submit($form, &$form_state) {
     $form_state['values']['options']['format'] = $form_state['values']['format'];
     parent::options_submit($form, $form_state);
   }
diff --git a/handlers/views_handler_argument.inc b/handlers/views_handler_argument.inc
index 3da811e..d104050 100644
--- a/handlers/views_handler_argument.inc
+++ b/handlers/views_handler_argument.inc
@@ -255,7 +255,7 @@ class views_handler_argument extends views_handler {
     );
   }
 
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     if (empty($form_state['values']['options'])) {
       return;
     }
@@ -680,7 +680,7 @@ class views_handler_argument extends views_handler {
    *
    * The argument sent may be found at $this->argument.
    */
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $placeholder = empty($this->definition['numeric']) ? "'%s'" : '%d';
     $this->query->add_where(0, "$this->table_alias.$this->real_field = $placeholder", $this->argument);
@@ -927,7 +927,7 @@ class views_handler_argument_broken extends views_handler_argument {
   }
 
   function ensure_my_table() { /* No table to ensure! */ }
-  function query() { /* No query to run */ }
+  function query($group_by = false) { /* No query to run */ }
   function options_form(&$form, &$form_state) {
     $form['markup'] = array(
       '#prefix' => '<div class="form-item description">',
diff --git a/handlers/views_handler_argument_formula.inc b/handlers/views_handler_argument_formula.inc
index 67e0b39..d0d57af 100644
--- a/handlers/views_handler_argument_formula.inc
+++ b/handlers/views_handler_argument_formula.inc
@@ -44,7 +44,7 @@ class views_handler_argument_formula extends views_handler_argument {
   /**
    * Build the query based upon the formula
    */
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     // Now that our table is secure, get our formula.
     $formula = $this->get_formula();
diff --git a/handlers/views_handler_argument_many_to_one.inc b/handlers/views_handler_argument_many_to_one.inc
index 5d7c354..b2d7822 100644
--- a/handlers/views_handler_argument_many_to_one.inc
+++ b/handlers/views_handler_argument_many_to_one.inc
@@ -73,7 +73,7 @@ class views_handler_argument_many_to_one extends views_handler_argument {
     $this->helper->ensure_my_table();
   }
 
-  function query() {
+  function query($group_by = FALSE) {
     $empty = FALSE;
     if (isset($this->definition['zero is null']) && $this->definition['zero is null']) {
       if (empty($this->argument)) {
diff --git a/handlers/views_handler_argument_null.inc b/handlers/views_handler_argument_null.inc
index 49b7502..47c4e1b 100644
--- a/handlers/views_handler_argument_null.inc
+++ b/handlers/views_handler_argument_null.inc
@@ -57,5 +57,5 @@ class views_handler_argument_null extends views_handler_argument {
    * Override the behavior of query() to prevent the query
    * from being changed in any way.
    */
-  function query() {}
+  function query($group_by = false) {}
 }
diff --git a/handlers/views_handler_argument_numeric.inc b/handlers/views_handler_argument_numeric.inc
index 6753805..ba06fe1 100644
--- a/handlers/views_handler_argument_numeric.inc
+++ b/handlers/views_handler_argument_numeric.inc
@@ -70,7 +70,7 @@ class views_handler_argument_numeric extends views_handler_argument {
     return $this->value;
   }
 
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
 
     if (!empty($this->options['break_phrase'])) {
diff --git a/handlers/views_handler_argument_string.inc b/handlers/views_handler_argument_string.inc
index 89b4cd3..ec8d6fb 100644
--- a/handlers/views_handler_argument_string.inc
+++ b/handlers/views_handler_argument_string.inc
@@ -172,7 +172,7 @@ class views_handler_argument_string extends views_handler_argument {
   /**
    * Build the query based upon the formula
    */
-  function query() {
+  function query($group_by = FALSE) {
     $argument = $this->argument;
     if (!empty($this->options['transform_dash'])) {
       $argument = strtr($argument, '-', ' ');
diff --git a/handlers/views_handler_field.inc b/handlers/views_handler_field.inc
index e480ed6..3456623 100644
--- a/handlers/views_handler_field.inc
+++ b/handlers/views_handler_field.inc
@@ -61,7 +61,7 @@ class views_handler_field extends views_handler {
   /**
    * Called to add the field to a query.
    */
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     // Add the field.
     $this->field_alias = $this->query->add_field($this->table_alias, $this->real_field);
@@ -1158,7 +1158,7 @@ class views_handler_field_broken extends views_handler_field {
   }
 
   function ensure_my_table() { /* No table to ensure! */ }
-  function query() { /* No query to run */ }
+  function query($group_by = FALSE) { /* No query to run */ }
   function options_form(&$form, &$form_state) {
     $form['markup'] = array(
       '#prefix' => '<div class="form-item description">',
diff --git a/handlers/views_handler_field_counter.inc b/handlers/views_handler_field_counter.inc
index 5866c41..71bf959 100644
--- a/handlers/views_handler_field_counter.inc
+++ b/handlers/views_handler_field_counter.inc
@@ -25,7 +25,7 @@ class views_handler_field_counter extends views_handler_field {
     );
   }
 
-  function query() {
+  function query($group_by = FALSE) {
     // do nothing -- to override the parent query.
   }
 
diff --git a/handlers/views_handler_field_custom.inc b/handlers/views_handler_field_custom.inc
index c6e687b..75f3195 100644
--- a/handlers/views_handler_field_custom.inc
+++ b/handlers/views_handler_field_custom.inc
@@ -6,7 +6,7 @@
  * @ingroup views_field_handlers
  */
 class views_handler_field_custom extends views_handler_field {
-  function query() {
+  function query($group_by = FALSE) {
     // do nothing -- to override the parent query.
   }
 
diff --git a/handlers/views_handler_field_group_by_numeric.inc b/handlers/views_handler_field_group_by_numeric.inc
index b04b698..15f34a9 100644
--- a/handlers/views_handler_field_group_by_numeric.inc
+++ b/handlers/views_handler_field_group_by_numeric.inc
@@ -15,7 +15,7 @@ class views_handler_field_group_by_numeric extends views_handler_field_numeric {
   /**
    * Called to add the field to a query.
    */
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     // Add the field, taking care of any aggregation that may affect it.
     $params = array(
diff --git a/handlers/views_handler_field_math.inc b/handlers/views_handler_field_math.inc
index 5cb5fce..8022b1b 100644
--- a/handlers/views_handler_field_math.inc
+++ b/handlers/views_handler_field_math.inc
@@ -74,5 +74,5 @@ class views_handler_field_math extends views_handler_field_numeric {
     return $this->sanitize_value($this->options['prefix'] . $value . $this->options['suffix']);
   }
 
-  function query() { }
+  function query($group_by = FALSE) { }
 }
diff --git a/handlers/views_handler_field_serialized.inc b/handlers/views_handler_field_serialized.inc
index 75ca19a..5cef94c 100644
--- a/handlers/views_handler_field_serialized.inc
+++ b/handlers/views_handler_field_serialized.inc
@@ -38,7 +38,7 @@ class views_handler_field_serialized extends views_handler_field {
     );
   }
 
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     // Require a key if the format is key.
     if ($form_state['values']['options']['format'] == 'key' && $form_state['values']['options']['key'] == '') {
       form_error($form['key'], t('You have to enter a key if you want to display a key of the data.'));
diff --git a/handlers/views_handler_filter.inc b/handlers/views_handler_filter.inc
index eb9577c..fb93a3a 100644
--- a/handlers/views_handler_filter.inc
+++ b/handlers/views_handler_filter.inc
@@ -578,7 +578,7 @@ class views_handler_filter extends views_handler {
    * level of indirection. You will find them in $this->operator
    * and $this->value respectively.
    */
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field " . $this->operator . " '%s'", $this->value);
   }
@@ -610,7 +610,7 @@ class views_handler_filter_broken extends views_handler_filter {
   }
 
   function ensure_my_table() { /* No table to ensure! */ }
-  function query() { /* No query to run */ }
+  function query($group_by = false) { /* No query to run */ }
   function options_form(&$form, &$form_state) {
     $form['markup'] = array(
       '#prefix' => '<div class="form-item description">',
diff --git a/handlers/views_handler_filter_boolean_operator.inc b/handlers/views_handler_filter_boolean_operator.inc
index 48a7ab2..78c2f53 100644
--- a/handlers/views_handler_filter_boolean_operator.inc
+++ b/handlers/views_handler_filter_boolean_operator.inc
@@ -143,7 +143,7 @@ class views_handler_filter_boolean_operator extends views_handler_filter {
     $this->options['expose']['optional'] = FALSE;
   }
 
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
 
     $where = "$this->table_alias.$this->real_field ";
diff --git a/handlers/views_handler_filter_boolean_operator_string.inc b/handlers/views_handler_filter_boolean_operator_string.inc
index b27cae4..e8752c5 100644
--- a/handlers/views_handler_filter_boolean_operator_string.inc
+++ b/handlers/views_handler_filter_boolean_operator_string.inc
@@ -11,7 +11,7 @@
  * @ingroup views_filter_handlers
  */
 class views_handler_filter_boolean_operator_string extends views_handler_filter_boolean_operator {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $where = "$this->table_alias.$this->real_field ";
 
diff --git a/handlers/views_handler_filter_group_by_numeric.inc b/handlers/views_handler_filter_group_by_numeric.inc
index 709dacd..c7e5c4f 100644
--- a/handlers/views_handler_filter_group_by_numeric.inc
+++ b/handlers/views_handler_filter_group_by_numeric.inc
@@ -6,7 +6,7 @@
  * @ingroup views_filter_handlers
  */
 class views_handler_filter_group_by_numeric extends views_handler_filter_numeric {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $field = $this->get_field();
 
diff --git a/handlers/views_handler_filter_in_operator.inc b/handlers/views_handler_filter_in_operator.inc
index 5d177ed..16a4e42 100644
--- a/handlers/views_handler_filter_in_operator.inc
+++ b/handlers/views_handler_filter_in_operator.inc
@@ -352,7 +352,7 @@ class views_handler_filter_in_operator extends views_handler_filter {
     return $operator . (($values !== '') ? ' ' . $values : '');
   }
 
-  function query() {
+  function query($group_by = false) {
     $info = $this->operators();
     if (!empty($info[$this->operator]['method'])) {
       $this->{$info[$this->operator]['method']}();
diff --git a/handlers/views_handler_filter_numeric.inc b/handlers/views_handler_filter_numeric.inc
index 44e6ece..801aa08 100644
--- a/handlers/views_handler_filter_numeric.inc
+++ b/handlers/views_handler_filter_numeric.inc
@@ -255,7 +255,7 @@ class views_handler_filter_numeric extends views_handler_filter {
     }
   }
 
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     $field = "$this->table_alias.$this->real_field";
 
diff --git a/handlers/views_handler_filter_string.inc b/handlers/views_handler_filter_string.inc
index 9d1526c..3841254 100644
--- a/handlers/views_handler_filter_string.inc
+++ b/handlers/views_handler_filter_string.inc
@@ -229,7 +229,7 @@ class views_handler_filter_string extends views_handler_filter {
    * level of indirection. You will find them in $this->operator
    * and $this->value respectively.
    */
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     $field = "$this->table_alias.$this->real_field";
     $upper = $this->case_transform();
diff --git a/handlers/views_handler_relationship.inc b/handlers/views_handler_relationship.inc
index 009b472..337741f 100644
--- a/handlers/views_handler_relationship.inc
+++ b/handlers/views_handler_relationship.inc
@@ -102,7 +102,7 @@ class views_handler_relationship extends views_handler {
   /**
    * Called to implement a relationship in a query.
    */
-  function query() {
+  function query($group_by = FALSE) {
     // Figure out what base table this relationship brings to the party.
     $table_data = views_fetch_data($this->definition['base']);
     $base_field = empty($this->definition['base field']) ? $table_data['table']['base']['field'] : $this->definition['base field'];
@@ -159,7 +159,7 @@ class views_handler_relationship_broken extends views_handler_relationship {
   }
 
   function ensure_my_table() { /* No table to ensure! */ }
-  function query() { /* No query to run */ }
+  function query($group_by = FALSE) { /* No query to run */ }
   function options_form(&$form, &$form_state) {
     $form['markup'] = array(
       '#prefix' => '<div class="form-item description">',
diff --git a/handlers/views_handler_sort.inc b/handlers/views_handler_sort.inc
index d703b5e..cf73779 100644
--- a/handlers/views_handler_sort.inc
+++ b/handlers/views_handler_sort.inc
@@ -18,7 +18,7 @@ class views_handler_sort extends views_handler {
   /**
    * Called to add the sort to a query.
    */
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     // Add the field.
     $this->query->add_orderby($this->table_alias, $this->real_field, $this->options['order']);
@@ -76,7 +76,7 @@ class views_handler_sort extends views_handler {
   /**
    * Simple validate handler
    */
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     $this->sort_validate($form, $form_state);
     if (!empty($this->options['exposed'])) {
       $this->expose_validate($form, $form_state);
@@ -87,7 +87,7 @@ class views_handler_sort extends views_handler {
   /**
    * Simple submit handler
    */
-  function options_submit(&$form, &$form_state) {
+  function options_submit($form, &$form_state) {
     unset($form_state['values']['expose_button']); // don't store this.
     $this->sort_submit($form, $form_state);
     if (!empty($this->options['exposed'])) {
@@ -175,7 +175,7 @@ class views_handler_sort_broken extends views_handler_sort {
   }
 
   function ensure_my_table() { /* No table to ensure! */ }
-  function query() { /* No query to run */ }
+  function query($group_by = FALSE) { /* No query to run */ }
   function options_form(&$form, &$form_state) {
     $form['markup'] = array(
       '#prefix' => '<div class="form-item description">',
diff --git a/handlers/views_handler_sort_date.inc b/handlers/views_handler_sort_date.inc
index 8101482..e1c4bb0 100644
--- a/handlers/views_handler_sort_date.inc
+++ b/handlers/views_handler_sort_date.inc
@@ -39,7 +39,7 @@ class views_handler_sort_date extends views_handler_sort {
   /**
    * Called to add the sort to a query.
    */
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     switch ($this->options['granularity']) {
       case 'second':
diff --git a/handlers/views_handler_sort_formula.inc b/handlers/views_handler_sort_formula.inc
index 30a6451..f81025e 100644
--- a/handlers/views_handler_sort_formula.inc
+++ b/handlers/views_handler_sort_formula.inc
@@ -27,7 +27,7 @@ class views_handler_sort_formula extends views_handler_sort {
   /**
    * Called to add the sort to a query.
    */
-  function query() {
+  function query($group_by = false) {
     if (is_array($this->formula)) {
       global $db_type;
       if (isset($this->formula[$db_type])) {
diff --git a/handlers/views_handler_sort_group_by_numeric.inc b/handlers/views_handler_sort_group_by_numeric.inc
index 8081fc6..076b3af 100644
--- a/handlers/views_handler_sort_group_by_numeric.inc
+++ b/handlers/views_handler_sort_group_by_numeric.inc
@@ -16,7 +16,7 @@ class views_handler_sort_group_by_numeric extends views_handler_sort {
   /**
    * Called to add the field to a query.
    */
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
 
     $params = array(
diff --git a/handlers/views_handler_sort_menu_hierarchy.inc b/handlers/views_handler_sort_menu_hierarchy.inc
index 39c6d3e..8f9978c 100644
--- a/handlers/views_handler_sort_menu_hierarchy.inc
+++ b/handlers/views_handler_sort_menu_hierarchy.inc
@@ -28,7 +28,7 @@ class views_handler_sort_menu_hierarchy extends views_handler_sort {
     );
   }
 
-  function query() {
+  function query($group_by = FALSE) {
     $this->ensure_my_table();
     $max_depth = isset($this->definition['max depth']) ? $this->definition['max depth'] : MENU_MAX_DEPTH;
     for ($i = 1; $i <= $max_depth; ++$i) {
diff --git a/handlers/views_handler_sort_random.inc b/handlers/views_handler_sort_random.inc
index 2a497d7..f8ba39b 100644
--- a/handlers/views_handler_sort_random.inc
+++ b/handlers/views_handler_sort_random.inc
@@ -6,7 +6,7 @@
  * @ingroup views_sort_handlers
  */
 class views_handler_sort_random extends views_handler_sort {
-  function query() {
+  function query($group_by = FALSE) {
     global $db_type;
     switch ($db_type) {
       case 'mysql':
diff --git a/includes/plugins.inc b/includes/plugins.inc
index c636e27..d7ca011 100644
--- a/includes/plugins.inc
+++ b/includes/plugins.inc
@@ -488,7 +488,7 @@ class views_plugin extends views_object {
   /**
    * Validate the options form.
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Handle any special handling on the validate form.
@@ -498,7 +498,7 @@ class views_plugin extends views_object {
   /**
    * Add anything to the query that we might need to.
    */
-  function query() { }
+  function query($group_by = false) { }
 
   /**
    * Provide a full list of possible theme templates used by this style.
diff --git a/modules/comment/views_handler_argument_comment_user_uid.inc b/modules/comment/views_handler_argument_comment_user_uid.inc
index e953b2e..4725e25 100644
--- a/modules/comment/views_handler_argument_comment_user_uid.inc
+++ b/modules/comment/views_handler_argument_comment_user_uid.inc
@@ -35,7 +35,7 @@ class views_handler_argument_comment_user_uid extends views_handler_argument {
     }
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->query->add_where(0, "$this->table_alias.uid = %d OR ((SELECT COUNT(*) FROM {comments} c WHERE c.uid = %d AND c.nid = $this->table_alias.nid) > 0)", $this->argument, $this->argument);
   }
diff --git a/modules/comment/views_handler_field_comment_link.inc b/modules/comment/views_handler_field_comment_link.inc
index 34075c7..4401479 100644
--- a/modules/comment/views_handler_field_comment_link.inc
+++ b/modules/comment/views_handler_field_comment_link.inc
@@ -26,7 +26,7 @@ class views_handler_field_comment_link extends views_handler_field {
     );
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/comment/views_handler_field_comment_node_link.inc b/modules/comment/views_handler_field_comment_node_link.inc
index f64b020..ff59404 100644
--- a/modules/comment/views_handler_field_comment_node_link.inc
+++ b/modules/comment/views_handler_field_comment_node_link.inc
@@ -38,7 +38,7 @@ class views_handler_field_comment_node_link extends views_handler_field {
 
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
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 84a72c8..692bba5 100644
--- a/modules/comment/views_handler_field_ncs_last_comment_name.inc
+++ b/modules/comment/views_handler_field_ncs_last_comment_name.inc
@@ -6,7 +6,7 @@
  * @ingroup views_field_handlers
  */
 class views_handler_field_ncs_last_comment_name extends views_handler_field {
-  function query() {
+  function query($group_by = false) {
     // last_comment_name only contains data if the user is anonymous. So we
     // have to join in a specially related user table.
     $this->ensure_my_table();
diff --git a/modules/comment/views_handler_field_ncs_last_updated.inc b/modules/comment/views_handler_field_ncs_last_updated.inc
index 3950ffb..6ab0669 100644
--- a/modules/comment/views_handler_field_ncs_last_updated.inc
+++ b/modules/comment/views_handler_field_ncs_last_updated.inc
@@ -5,7 +5,7 @@
  * @ingroup views_field_handlers
  */
 class views_handler_field_ncs_last_updated extends views_handler_field_date {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->node_table = $this->query->ensure_table('node', $this->relationship);
     $this->field_alias = $this->query->add_field(NULL, "GREATEST(" . $this->node_table . ".changed, " . $this->table_alias . ".last_comment_timestamp)", $this->table_alias . '_' . $this->field);
diff --git a/modules/comment/views_handler_field_node_new_comments.inc b/modules/comment/views_handler_field_node_new_comments.inc
index 9917698..03f882e 100644
--- a/modules/comment/views_handler_field_node_new_comments.inc
+++ b/modules/comment/views_handler_field_node_new_comments.inc
@@ -41,7 +41,7 @@ class views_handler_field_node_new_comments extends views_handler_field_numeric
     );
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
     $this->field_alias = $this->table . '_' . $this->field;
diff --git a/modules/comment/views_handler_filter_comment_user_uid.inc b/modules/comment/views_handler_filter_comment_user_uid.inc
index 8959e13..a66968a 100644
--- a/modules/comment/views_handler_filter_comment_user_uid.inc
+++ b/modules/comment/views_handler_filter_comment_user_uid.inc
@@ -7,7 +7,7 @@
  * @ingroup views_filter_handlers
  */
 class views_handler_filter_comment_user_uid extends views_handler_filter_user_name {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $replace = array_fill(0, sizeof($this->value), '%d');
     $condition = $this->operator . ' (' . implode(", ", $replace) . ')';
diff --git a/modules/comment/views_handler_filter_ncs_last_updated.inc b/modules/comment/views_handler_filter_ncs_last_updated.inc
index 3818db9..caa4ec7 100644
--- a/modules/comment/views_handler_filter_ncs_last_updated.inc
+++ b/modules/comment/views_handler_filter_ncs_last_updated.inc
@@ -5,7 +5,7 @@
  * @ingroup views_filter_handlers
  */
 class views_handler_filter_ncs_last_updated extends views_handler_filter_date {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->node_table = $this->query->ensure_table('node', $this->relationship);
 
diff --git a/modules/comment/views_handler_sort_comment_thread.inc b/modules/comment/views_handler_sort_comment_thread.inc
index e529b2a..89f6b6c 100644
--- a/modules/comment/views_handler_sort_comment_thread.inc
+++ b/modules/comment/views_handler_sort_comment_thread.inc
@@ -3,7 +3,7 @@
  * Sort handler for ordering by thread
  */
 class views_handler_sort_comment_thread extends views_handler_sort {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
 
     //Read comment_render() in comment.module for an explanation of the
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 8eca177..4f2a977 100644
--- a/modules/comment/views_handler_sort_ncs_last_comment_name.inc
+++ b/modules/comment/views_handler_sort_ncs_last_comment_name.inc
@@ -6,7 +6,7 @@
  * @ingroup views_sort_handlers
  */
 class views_handler_sort_ncs_last_comment_name extends views_handler_sort {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $join = new views_join();
     $join->construct('users', $this->table_alias, 'last_comment_uid', 'uid');
diff --git a/modules/comment/views_handler_sort_ncs_last_updated.inc b/modules/comment/views_handler_sort_ncs_last_updated.inc
index 04b01a1..796050b 100644
--- a/modules/comment/views_handler_sort_ncs_last_updated.inc
+++ b/modules/comment/views_handler_sort_ncs_last_updated.inc
@@ -5,7 +5,7 @@
  * @ingroup views_sort_handlers
  */
 class views_handler_sort_ncs_last_updated extends views_handler_sort_date {
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->node_table = $this->query->ensure_table('node', $this->relationship);
     $this->field_alias = $this->query->add_orderby(NULL, "GREATEST(" . $this->node_table . ".changed, " . $this->table_alias . ".last_comment_timestamp)", $this->options['order'], $this->table_alias . '_' . $this->field);
diff --git a/modules/filter/views_handler_field_filter_format_name.inc b/modules/filter/views_handler_field_filter_format_name.inc
index 48070de..ce85bc8 100644
--- a/modules/filter/views_handler_field_filter_format_name.inc
+++ b/modules/filter/views_handler_field_filter_format_name.inc
@@ -11,7 +11,7 @@ class views_handler_field_filter_format_name extends views_handler_field {
     $this->additional_fields['name'] = array('table' => 'filter_formats', 'field' => 'name');
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/locale/views_handler_field_locale_link_edit.inc b/modules/locale/views_handler_field_locale_link_edit.inc
index 5466446..a23e8bb 100644
--- a/modules/locale/views_handler_field_locale_link_edit.inc
+++ b/modules/locale/views_handler_field_locale_link_edit.inc
@@ -28,7 +28,7 @@ class views_handler_field_locale_link_edit extends views_handler_field {
     );
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/node/views_handler_field_history_user_timestamp.inc b/modules/node/views_handler_field_history_user_timestamp.inc
index 8286c4f..05dc33e 100644
--- a/modules/node/views_handler_field_history_user_timestamp.inc
+++ b/modules/node/views_handler_field_history_user_timestamp.inc
@@ -36,7 +36,7 @@ class views_handler_field_history_user_timestamp extends views_handler_field_nod
     }
   }
 
-  function query() {
+  function query($group_by = false) {
     // Only add ourselves to the query if logged in.
     global $user;
     if (!$user->uid) {
diff --git a/modules/node/views_handler_field_node_link.inc b/modules/node/views_handler_field_node_link.inc
index 4f28ef3..583c98d 100644
--- a/modules/node/views_handler_field_node_link.inc
+++ b/modules/node/views_handler_field_node_link.inc
@@ -31,7 +31,7 @@ class views_handler_field_node_link extends views_handler_field {
     $form['alter']['external'] = array('#access' => FALSE);
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/node/views_handler_field_node_path.inc b/modules/node/views_handler_field_node_path.inc
index de7dc9b..7757025 100644
--- a/modules/node/views_handler_field_node_path.inc
+++ b/modules/node/views_handler_field_node_path.inc
@@ -29,7 +29,7 @@ class views_handler_field_node_path extends views_handler_field {
     );
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/node/views_handler_filter_history_user_timestamp.inc b/modules/node/views_handler_filter_history_user_timestamp.inc
index d8b1b53..6420956 100644
--- a/modules/node/views_handler_filter_history_user_timestamp.inc
+++ b/modules/node/views_handler_filter_history_user_timestamp.inc
@@ -31,7 +31,7 @@ class views_handler_filter_history_user_timestamp extends views_handler_filter {
     }
   }
 
-  function query() {
+  function query($group_by = false) {
     global $user;
     // This can only work if we're logged in.
     if (!$user || !$user->uid) {
diff --git a/modules/node/views_handler_filter_node_access.inc b/modules/node/views_handler_filter_node_access.inc
index e9bc675..c008672 100644
--- a/modules/node/views_handler_filter_node_access.inc
+++ b/modules/node/views_handler_filter_node_access.inc
@@ -14,7 +14,7 @@ class views_handler_filter_node_access extends views_handler_filter {
   /**
    * See _node_access_where_sql() for a non-views query based implementation.
    */
-  function query() {
+  function query($group_by = false) {
     if (!user_access('administer nodes')) {
       $table = $this->ensure_my_table();
       $grants = array();
diff --git a/modules/node/views_handler_filter_node_status.inc b/modules/node/views_handler_filter_node_status.inc
index e4a5585..dfb01ce 100644
--- a/modules/node/views_handler_filter_node_status.inc
+++ b/modules/node/views_handler_filter_node_status.inc
@@ -8,7 +8,7 @@ class views_handler_filter_node_status extends views_handler_filter {
   function admin_summary() { }
   function operator_form(&$form, &$form_state) { }
 
-  function query() {
+  function query($group_by = false) {
     $table = $this->ensure_my_table();
     $this->query->add_where($this->options['group'], "$table.status = 1 OR ($table.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0) OR ***ADMINISTER_NODES*** = 1");
   }
diff --git a/modules/node/views_plugin_argument_validate_node.inc b/modules/node/views_plugin_argument_validate_node.inc
index 723c5ef..09e029e 100644
--- a/modules/node/views_plugin_argument_validate_node.inc
+++ b/modules/node/views_plugin_argument_validate_node.inc
@@ -55,7 +55,7 @@ class views_plugin_argument_validate_node extends views_plugin_argument_validate
     );
   }
 
-  function options_submit(&$form, &$form_state, &$options = array()) {
+  function options_submit($form, &$form_state, &$options = array()) {
     // filter trash out of the options so we don't store giant unnecessary arrays
     $options['types'] = array_filter($options['types']);
   }
diff --git a/modules/search/views_handler_argument_search.inc b/modules/search/views_handler_argument_search.inc
index 2be8e4d..ac5f6cf 100644
--- a/modules/search/views_handler_argument_search.inc
+++ b/modules/search/views_handler_argument_search.inc
@@ -10,7 +10,7 @@ class views_handler_argument_search extends views_handler_argument {
   /**
    * Add this argument to the query.
    */
-  function query() {
+  function query($group_by = false) {
     $this->search_query = search_parse_query($this->argument);
 
     if (!isset($this->search_query) || empty($this->search_query[3])) {
diff --git a/modules/search/views_handler_field_search_score.inc b/modules/search/views_handler_field_search_score.inc
index 8203ece..ef290ed 100644
--- a/modules/search/views_handler_field_search_score.inc
+++ b/modules/search/views_handler_field_search_score.inc
@@ -43,7 +43,7 @@ class views_handler_field_search_score extends views_handler_field_numeric {
     parent::options_form($form, $form_state);
   }
 
-  function query() {
+  function query($group_by = false) {
     // Check to see if the search filter added 'score' to the table.
     // Our filter stores it as $handler->search_score -- and we also
     // need to check its relationship to make sure that we're using the same
diff --git a/modules/search/views_handler_filter_search.inc b/modules/search/views_handler_filter_search.inc
index 2bf321a..7273b57 100644
--- a/modules/search/views_handler_filter_search.inc
+++ b/modules/search/views_handler_filter_search.inc
@@ -75,7 +75,7 @@ class views_handler_filter_search extends views_handler_filter {
    * level of indirection. You will find them in $this->operator
    * and $this->value respectively.
    */
-  function query() {
+  function query($group_by = false) {
     if (!isset($this->search_query) || empty($this->search_query[3])) {
       if ($this->operator == 'required') {
         $this->query->add_where($this->options['group'], 'FALSE');
diff --git a/modules/search/views_handler_sort_search_score.inc b/modules/search/views_handler_sort_search_score.inc
index 614d83a..0f5c2ce 100644
--- a/modules/search/views_handler_sort_search_score.inc
+++ b/modules/search/views_handler_sort_search_score.inc
@@ -6,7 +6,7 @@
  * @ingroup views_sort_handlers
  */
 class views_handler_sort_search_score extends views_handler_sort {
-  function query() {
+  function query($group_by = false) {
     // Check to see if the search filter/argument added 'score' to the table.
     // Our filter stores it as $handler->search_score -- and we also
     // need to check its relationship to make sure that we're using the same
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 1eafe71..e1bfc6a 100644
--- a/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
+++ b/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
@@ -78,7 +78,7 @@ class views_handler_argument_term_node_tid_depth extends views_handler_argument
     return $actions;
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
 
     if (!empty($this->options['break_phrase'])) {
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 5743dd5..fafe23c 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
@@ -10,7 +10,7 @@
  */
 class views_handler_argument_term_node_tid_depth_modifier extends views_handler_argument {
   function options_form(&$form, &$form_state) { }
-  function query() { }
+  function query($group_by = false) { }
   function pre_query() {
     // We don't know our argument yet, but it's based upon our position:
     $argument = isset($this->view->args[$this->position]) ? $this->view->args[$this->position] : NULL;
diff --git a/modules/taxonomy/views_handler_field_term_link_edit.inc b/modules/taxonomy/views_handler_field_term_link_edit.inc
index a727356..23978cc 100644
--- a/modules/taxonomy/views_handler_field_term_link_edit.inc
+++ b/modules/taxonomy/views_handler_field_term_link_edit.inc
@@ -28,7 +28,7 @@ class views_handler_field_term_link_edit extends views_handler_field {
     );
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/taxonomy/views_handler_field_term_node_tid.inc b/modules/taxonomy/views_handler_field_term_node_tid.inc
index 4256a47..122c8e6 100644
--- a/modules/taxonomy/views_handler_field_term_node_tid.inc
+++ b/modules/taxonomy/views_handler_field_term_node_tid.inc
@@ -64,7 +64,7 @@ class views_handler_field_term_node_tid extends views_handler_field_prerender_li
   /**
    * Add this term to the query
    */
-  function query() {
+  function query($group_by = false) {
     $this->add_additional_fields();
   }
 
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 f9e1a89..2ccfa74 100644
--- a/modules/taxonomy/views_handler_filter_term_node_tid_depth.inc
+++ b/modules/taxonomy/views_handler_filter_term_node_tid_depth.inc
@@ -33,7 +33,7 @@ class views_handler_filter_term_node_tid_depth extends views_handler_filter_term
     );
   }
 
-  function query() {
+  function query($group_by = false) {
     // If no filter values are present, then do nothing.
     if (count($this->value) == 0) {
       return;
diff --git a/modules/taxonomy/views_handler_relationship_node_term_data.inc b/modules/taxonomy/views_handler_relationship_node_term_data.inc
index 30998c6..6c49ae0 100644
--- a/modules/taxonomy/views_handler_relationship_node_term_data.inc
+++ b/modules/taxonomy/views_handler_relationship_node_term_data.inc
@@ -41,7 +41,7 @@ class views_handler_relationship_node_term_data extends views_handler_relationsh
   /**
    * Called to implement a relationship in a query.
    */
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
 
     $def = $this->definition;
diff --git a/modules/taxonomy/views_plugin_argument_default_taxonomy_tid.inc b/modules/taxonomy/views_plugin_argument_default_taxonomy_tid.inc
index 6356398..af31330 100644
--- a/modules/taxonomy/views_plugin_argument_default_taxonomy_tid.inc
+++ b/modules/taxonomy/views_plugin_argument_default_taxonomy_tid.inc
@@ -70,7 +70,7 @@ class views_plugin_argument_default_taxonomy_tid extends views_plugin_argument_d
     );
   }
 
-  function options_submit(&$form, &$form_state, &$options) {
+  function options_submit($form, &$form_state, &$options) {
     // Clear checkbox values.
     $options['vids'] = array_filter($options['vids']);
   }
diff --git a/modules/taxonomy/views_plugin_argument_validate_taxonomy_term.inc b/modules/taxonomy/views_plugin_argument_validate_taxonomy_term.inc
index febc17d..833d2d9 100644
--- a/modules/taxonomy/views_plugin_argument_validate_taxonomy_term.inc
+++ b/modules/taxonomy/views_plugin_argument_validate_taxonomy_term.inc
@@ -52,7 +52,7 @@ class views_plugin_argument_validate_taxonomy_term extends views_plugin_argument
     );
   }
 
-  function options_submit($form, &$form_state, &$options) {
+  function options_submit($form, &$form_state) {
     // filter trash out of the options so we don't store giant unnecessary arrays
     $options['vids'] = array_filter($options['vids']);
   }
diff --git a/modules/translation/views_handler_field_node_translation_link.inc b/modules/translation/views_handler_field_node_translation_link.inc
index 537ba60..ee9fff9 100644
--- a/modules/translation/views_handler_field_node_translation_link.inc
+++ b/modules/translation/views_handler_field_node_translation_link.inc
@@ -13,7 +13,7 @@ class views_handler_field_node_translation_link extends views_handler_field {
     $this->additional_fields['language'] = 'language';
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/translation/views_handler_filter_node_tnid.inc b/modules/translation/views_handler_filter_node_tnid.inc
index e96fe26..16b7bf8 100644
--- a/modules/translation/views_handler_filter_node_tnid.inc
+++ b/modules/translation/views_handler_filter_node_tnid.inc
@@ -31,7 +31,7 @@ class views_handler_filter_node_tnid extends views_handler_filter {
 
   function can_expose() { return FALSE; }
 
-  function query() {
+  function query($group_by = false) {
     $table = $this->ensure_my_table();
     // Select for source translations (tnid = nid). Conditionally, also accept either untranslated nodes (tnid = 0).
     $this->query->add_where($this->options['group'], "$table.tnid = $table.nid" . ($this->operator ? " OR $table.tnid = 0" : ''));
diff --git a/modules/translation/views_handler_filter_node_tnid_child.inc b/modules/translation/views_handler_filter_node_tnid_child.inc
index 593913e..4852d9c 100644
--- a/modules/translation/views_handler_filter_node_tnid_child.inc
+++ b/modules/translation/views_handler_filter_node_tnid_child.inc
@@ -9,7 +9,7 @@ class views_handler_filter_node_tnid_child extends views_handler_filter {
   function operator_form(&$form, &$form_state) { }
   function can_expose() { return FALSE; }
 
-  function query() {
+  function query($group_by = false) {
     $table = $this->ensure_my_table();
     $this->query->add_where($this->options['group'], "$table.tnid <> $table.nid AND $table.tnid > 0");
   }
diff --git a/modules/translation/views_handler_relationship_translation.inc b/modules/translation/views_handler_relationship_translation.inc
index 785b0d9..59cec89 100644
--- a/modules/translation/views_handler_relationship_translation.inc
+++ b/modules/translation/views_handler_relationship_translation.inc
@@ -38,7 +38,7 @@ class views_handler_relationship_translation extends views_handler_relationship
   /**
    * Called to implement a relationship in a query.
    */
-  function query() {
+  function query($group_by = false) {
     // Figure out what base table this relationship brings to the party.
     $table_data = views_fetch_data($this->definition['base']);
     $base_field = empty($this->definition['base field']) ? $table_data['table']['base']['field'] : $this->definition['base field'];
diff --git a/modules/upload/views_handler_filter_upload_fid.inc b/modules/upload/views_handler_filter_upload_fid.inc
index 4743b5c..e311ad1 100644
--- a/modules/upload/views_handler_filter_upload_fid.inc
+++ b/modules/upload/views_handler_filter_upload_fid.inc
@@ -9,7 +9,7 @@ class views_handler_filter_upload_fid extends views_handler_filter_boolean_opera
     $this->value_value = t('Has attached files');
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->query->add_where($this->options['group'], "(SELECT COUNT(*) FROM {upload} u WHERE u.vid = $this->table_alias.$this->real_field) " . (empty($this->value) ? '=' : '<>') . " 0");
   }
diff --git a/modules/user/views_handler_field_user_link.inc b/modules/user/views_handler_field_user_link.inc
index 7ed8bc1..7fda637 100644
--- a/modules/user/views_handler_field_user_link.inc
+++ b/modules/user/views_handler_field_user_link.inc
@@ -30,7 +30,7 @@ class views_handler_field_user_link extends views_handler_field {
     return user_access('access user profiles');
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $this->add_additional_fields();
   }
diff --git a/modules/user/views_handler_field_user_roles.inc b/modules/user/views_handler_field_user_roles.inc
index 6c5beeb..1dc8095 100644
--- a/modules/user/views_handler_field_user_roles.inc
+++ b/modules/user/views_handler_field_user_roles.inc
@@ -10,7 +10,7 @@ class views_handler_field_user_roles extends views_handler_field_prerender_list
     $this->additional_fields['uid'] = array('table' => 'users', 'field' => 'uid');
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->add_additional_fields();
     $this->field_alias = $this->aliases['uid'];
   }
diff --git a/modules/user/views_handler_filter_user_current.inc b/modules/user/views_handler_filter_user_current.inc
index c5d0c56..ffb70ac 100644
--- a/modules/user/views_handler_filter_user_current.inc
+++ b/modules/user/views_handler_filter_user_current.inc
@@ -11,7 +11,7 @@ class views_handler_filter_user_current extends views_handler_filter_boolean_ope
     $this->value_value = t('Is the logged in user');
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->ensure_my_table();
     $where = "$this->table_alias.$this->real_field ";
 
diff --git a/plugins/views_plugin_access.inc b/plugins/views_plugin_access.inc
index e2518db..cc8e80d 100644
--- a/plugins/views_plugin_access.inc
+++ b/plugins/views_plugin_access.inc
@@ -39,7 +39,7 @@ class views_plugin_access extends views_plugin {
   /**
    * Provide the default form form for validating options
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Provide the default form form for submitting options
diff --git a/plugins/views_plugin_access_role.inc b/plugins/views_plugin_access_role.inc
index ed42cba..6a54f36 100644
--- a/plugins/views_plugin_access_role.inc
+++ b/plugins/views_plugin_access_role.inc
@@ -45,13 +45,13 @@ class views_plugin_access_role extends views_plugin_access {
     );
   }
 
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     if (!array_filter($form_state['values']['access_options']['role'])) {
       form_error($form['role'], t('You must select at least one role if type is "by role"'));
     }
   }
 
-  function options_submit(&$form, &$form_state) {
+  function options_submit($form, &$form_state) {
     // I hate checkboxes.
     $form_state['values']['access_options']['role'] = array_filter($form_state['values']['access_options']['role']);
   }
diff --git a/plugins/views_plugin_argument_default.inc b/plugins/views_plugin_argument_default.inc
index 6c5e65f..ed2b2b1 100644
--- a/plugins/views_plugin_argument_default.inc
+++ b/plugins/views_plugin_argument_default.inc
@@ -51,7 +51,7 @@ class views_plugin_argument_default extends views_plugin {
   /**
    * Provide the default form form for validating options
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Provide the default form form for submitting options
diff --git a/plugins/views_plugin_argument_validate.inc b/plugins/views_plugin_argument_validate.inc
index 5e019a3..4730e43 100644
--- a/plugins/views_plugin_argument_validate.inc
+++ b/plugins/views_plugin_argument_validate.inc
@@ -46,12 +46,12 @@ class views_plugin_argument_validate extends views_plugin {
   /**
    * Provide the default form form for validating options
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Provide the default form form for submitting options
    */
-  function options_submit(&$form, &$form_state) { }
+  function options_submit($form, &$form_state) { }
 
   /**
    * Convert options from the older style.
diff --git a/plugins/views_plugin_display.inc b/plugins/views_plugin_display.inc
index 9ad2c99..84466a6 100644
--- a/plugins/views_plugin_display.inc
+++ b/plugins/views_plugin_display.inc
@@ -1975,7 +1975,7 @@ class views_plugin_display extends views_plugin {
   /**
    * Validate the options form.
    */
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     switch ($form_state['section']) {
       case 'display_title':
         if (empty($form_state['values']['display_title'])) {
@@ -2323,7 +2323,7 @@ class views_plugin_display extends views_plugin {
   /**
    * Inject anything into the query that the display handler needs.
    */
-  function query() {
+  function query($group_by = false) {
     foreach ($this->extender as $extender) {
       $extender->query();
     }
diff --git a/plugins/views_plugin_display_extender.inc b/plugins/views_plugin_display_extender.inc
index c2cc488..5726a9d 100644
--- a/plugins/views_plugin_display_extender.inc
+++ b/plugins/views_plugin_display_extender.inc
@@ -22,12 +22,12 @@ class views_plugin_display_extender extends views_plugin {
   /**
    * Validate the options form.
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Handle any special handling on the validate form.
    */
-  function options_submit(&$form, &$form_state) { }
+  function options_submit($form, &$form_state) { }
 
   /**
    * Set up any variables on the view prior to execution.
@@ -37,7 +37,7 @@ class views_plugin_display_extender extends views_plugin {
   /**
    * Inject anything into the query that the display_extender handler needs.
    */
-  function query() { }
+  function query($group_by = false) { }
 
   /**
    * Provide the default summary for options in the views UI.
diff --git a/plugins/views_plugin_display_page.inc b/plugins/views_plugin_display_page.inc
index 1eecacb..f740274 100644
--- a/plugins/views_plugin_display_page.inc
+++ b/plugins/views_plugin_display_page.inc
@@ -463,7 +463,7 @@ class views_plugin_display_page extends views_plugin_display {
     }
   }
 
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     // It is very important to call the parent function here:
     parent::options_validate($form, $form_state);
     switch ($form_state['section']) {
diff --git a/plugins/views_plugin_exposed_form.inc b/plugins/views_plugin_exposed_form.inc
index ce9a8ef..fad57d6 100644
--- a/plugins/views_plugin_exposed_form.inc
+++ b/plugins/views_plugin_exposed_form.inc
@@ -158,7 +158,7 @@ class views_plugin_exposed_form extends views_plugin {
     }
   }
 
-  function query() {
+  function query($group_by = false) {
     $view = $this->view;
     $exposed_data = $view->exposed_data;
     if (!empty($exposed_data['sort_by'])) {
diff --git a/plugins/views_plugin_exposed_form_input_required.inc b/plugins/views_plugin_exposed_form_input_required.inc
index 974b288..dbe830f 100644
--- a/plugins/views_plugin_exposed_form_input_required.inc
+++ b/plugins/views_plugin_exposed_form_input_required.inc
@@ -78,7 +78,7 @@ class views_plugin_exposed_form_input_required extends views_plugin_exposed_form
     }
   }
 
-  function query() {
+  function query($group_by = false) {
     if (!$this->exposed_filter_applied()) {
       // We return with no query; this will force the empty text.
       $this->view->built = TRUE;
diff --git a/plugins/views_plugin_pager.inc b/plugins/views_plugin_pager.inc
index 1131bb4..2eae659 100644
--- a/plugins/views_plugin_pager.inc
+++ b/plugins/views_plugin_pager.inc
@@ -99,7 +99,7 @@ class views_plugin_pager extends views_plugin {
   /**
    * Provide the default form form for validating options
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Provide the default form form for submitting options
@@ -160,7 +160,7 @@ class views_plugin_pager extends views_plugin {
    *
    * This is called during the build phase and can directly modify the query.
    */
-  function query() { }
+  function query($group_by = false) { }
 
   /**
    * Perform any needed actions just prior to the query executing.
diff --git a/plugins/views_plugin_pager_full.inc b/plugins/views_plugin_pager_full.inc
index f97c6a4..c0b55a9 100644
--- a/plugins/views_plugin_pager_full.inc
+++ b/plugins/views_plugin_pager_full.inc
@@ -146,7 +146,7 @@ class views_plugin_pager_full extends views_plugin_pager {
     );
   }
 
-  function options_validate(&$form, &$form_state) {
+  function options_validate($form, &$form_state) {
     // Only accept integer values.
     $error = FALSE;
     $exposed_options = $form_state['values']['pager_options']['expose']['items_per_page_options'];
@@ -179,7 +179,7 @@ class views_plugin_pager_full extends views_plugin_pager {
     }
   }
 
-  function query() {
+  function query($group_by = false) {
     if ($this->items_per_page_exposed()) {
       if (!empty($_GET['items_per_page']) && $_GET['items_per_page'] > 0) {
         $this->options['items_per_page'] = $_GET['items_per_page'];
diff --git a/plugins/views_plugin_pager_none.inc b/plugins/views_plugin_pager_none.inc
index 49e3022..a5a2716 100644
--- a/plugins/views_plugin_pager_none.inc
+++ b/plugins/views_plugin_pager_none.inc
@@ -60,7 +60,7 @@ class views_plugin_pager_none extends views_plugin_pager {
     $this->total_items = count($result);
   }
 
-  function query() {
+  function query($group_by = false) {
     // The only query modifications we might do are offsets.
     if (!empty($this->options['offset'])) {
       $this->view->query->set_offset($this->options['offset']);
diff --git a/plugins/views_plugin_pager_some.inc b/plugins/views_plugin_pager_some.inc
index 28ed1a3..ce8242c 100644
--- a/plugins/views_plugin_pager_some.inc
+++ b/plugins/views_plugin_pager_some.inc
@@ -48,7 +48,7 @@ class views_plugin_pager_some extends views_plugin_pager {
     return FALSE;
   }
 
-  function query() {
+  function query($group_by = false) {
     $this->view->query->set_limit($this->options['items_per_page']);
     $this->view->query->set_offset($this->options['offset']);
   }
diff --git a/plugins/views_plugin_query.inc b/plugins/views_plugin_query.inc
index a82749e..e87bc05 100644
--- a/plugins/views_plugin_query.inc
+++ b/plugins/views_plugin_query.inc
@@ -84,9 +84,9 @@ class views_plugin_query extends views_plugin {
    */
   function options_form(&$form, &$form_state) { }
 
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
-  function options_submit(&$form, &$form_state) { }
+  function options_submit($form, &$form_state) { }
 
   function summary_title() {
     return t('Settings');
diff --git a/plugins/views_plugin_row.inc b/plugins/views_plugin_row.inc
index 45029fd..395acf2 100644
--- a/plugins/views_plugin_row.inc
+++ b/plugins/views_plugin_row.inc
@@ -98,15 +98,15 @@ class views_plugin_row extends views_plugin {
   /**
    * Validate the options form.
    */
-  function options_validate(&$form, &$form_state) { }
+  function options_validate($form, &$form_state) { }
 
   /**
    * Perform any necessary changes to the form values prior to storage.
    * There is no need for this function to actually store the data.
    */
-  function options_submit(&$form, &$form_state) { }
+  function options_submit($form, &$form_state) { }
 
-  function query() {
+  function query($group_by = false) {
     if (isset($this->base_table)) {
       if (isset($this->options['relationship']) && isset($this->view->relationship[$this->options['relationship']])) {
         $relationship = $this->view->relationship[$this->options['relationship']];
diff --git a/plugins/views_plugin_row_fields.inc b/plugins/views_plugin_row_fields.inc
index f152240..c2e452b 100644
--- a/plugins/views_plugin_row_fields.inc
+++ b/plugins/views_plugin_row_fields.inc
@@ -76,7 +76,7 @@ class views_plugin_row_fields extends views_plugin_row {
    * Perform any necessary changes to the form values prior to storage.
    * There is no need for this function to actually store the data.
    */
-  function options_submit(&$form, &$form_state) {
+  function options_submit($form, &$form_state) {
     $form_state['values']['row_options']['inline'] = array_filter($form_state['values']['row_options']['inline']);
   }
 }
diff --git a/plugins/views_plugin_style.inc b/plugins/views_plugin_style.inc
index 385f3a5..f793999 100644
--- a/plugins/views_plugin_style.inc
+++ b/plugins/views_plugin_style.inc
@@ -364,7 +364,7 @@ class views_plugin_style extends views_plugin {
     return $errors;
   }
 
-  function query() {
+  function query($group_by = false) {
     parent::query();
     if (isset($this->row_plugin)) {
       $this->row_plugin->query();
diff --git a/plugins/views_plugin_style_summary.inc b/plugins/views_plugin_style_summary.inc
index 2508b39..6fc5c6e 100644
--- a/plugins/views_plugin_style_summary.inc
+++ b/plugins/views_plugin_style_summary.inc
@@ -21,7 +21,7 @@ class views_plugin_style_summary extends views_plugin_style {
     return $options;
   }
 
-  function query() {
+  function query($group_by = false) {
     if (!empty($this->options['override'])) {
       $this->view->set_items_per_page(intval($this->options['items_per_page']));
     }
diff --git a/plugins/views_plugin_style_summary_jump_menu.inc b/plugins/views_plugin_style_summary_jump_menu.inc
index 097cc19..7b52f51 100644
--- a/plugins/views_plugin_style_summary_jump_menu.inc
+++ b/plugins/views_plugin_style_summary_jump_menu.inc
@@ -23,7 +23,7 @@ class views_plugin_style_summary_jump_menu extends views_plugin_style {
     return $options;
   }
 
-  function query() {
+  function query($group_by = false) {
     // Copy the offset option.
     $pager = array(
       'type' => 'none',