I'm not sure if this should be a support request, bug report, or perhaps a feature request to views, so my apologies if this ultimately is not related to how multigroup is functioning. I am trying to create a multi-tiered office hours field that can group opening and closing times based on one field: branch. I'm really close, but the branches duplicate the hours listed for the other branches. Am I missing something, or is this just not possible with multigroups and views at this point? You can see the attached edit form (and see the desired results based on what is entered into the form). Then the attached screen of the results shows the problem duplicates. Any suggestions?

CommentFileSizeAuthor
branch_view.jpg36.38 KBbomarmonk
branch_hours_edit.jpg46.6 KBbomarmonk

Comments

bomarmonk’s picture

And a copy of my table view based on the multigroup (thanks for any help):

$view = new view;
$view->name = 'office_hours';
$view->description = 'A view of a group\'s office hours';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'field_day_value' => array(
    'label' => 'Hours',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'custom',
    'format' => 'default',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_day_value',
    'table' => 'node_data_field_day',
    'field' => 'field_day_value',
    'relationship' => 'none',
  ),
  'field_separator_days_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_separator_days_value',
    'table' => 'node_data_field_separator_days',
    'field' => 'field_separator_days_value',
    'relationship' => 'none',
  ),
  'field_day2_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_day2_value',
    'table' => 'node_data_field_day2',
    'field' => 'field_day2_value',
    'relationship' => 'none',
  ),
  'field_hours_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 1,
    'link_to_node' => 0,
    'label_type' => 'custom',
    'format' => '12hr',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_hours_value',
    'table' => 'node_data_field_hours',
    'field' => 'field_hours_value',
    'relationship' => 'none',
  ),
  'field_closing_hour_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'custom',
    'format' => '12hr',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_closing_hour_value',
    'table' => 'node_data_field_closing_hour',
    'field' => 'field_closing_hour_value',
    'relationship' => 'none',
  ),
  'field_branch_name_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 1,
    'id' => 'field_branch_name_value',
    'table' => 'node_data_field_branch_name',
    'field' => 'field_branch_name_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'nid' => array(
    'default_action' => 'not found',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'node',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'not' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '4' => 0,
      '39' => 0,
      '10' => 0,
      '44' => 0,
      '14' => 0,
      '21' => 0,
      '9' => 0,
      '6' => 0,
      '30' => 0,
      '20' => 0,
      '15' => 0,
      '11' => 0,
      '16' => 0,
      '13' => 0,
      '26' => 0,
      '17' => 0,
      '45' => 0,
      '23' => 0,
      '7' => 0,
      '8' => 0,
      '31' => 0,
      '42' => 0,
      '41' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'webform' => 0,
      'casetracker_basic_project' => 0,
      'casetracker_basic_case' => 0,
      'mass_contact' => 0,
      'sitenotes' => 0,
      'weblinks' => 0,
      'panel' => 0,
      'bio' => 0,
      'book' => 0,
      'contact_information' => 0,
      'content_community_center_reserva' => 0,
      'content_county_file_or_form_cck' => 0,
      'content_county_official' => 0,
      'content_facility_sub_page' => 0,
      'content_file_index' => 0,
      'content_group_home_page' => 0,
      'content_minutes_or_agenda_cck' => 0,
      'content_road_report_cck' => 0,
      'county_facility_or_service' => 0,
      'custom_adm_script' => 0,
      'emerg_notice' => 0,
      'node_4web_edit' => 0,
      'page' => 0,
      'profile' => 0,
      'resuseable_location' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '30' => 0,
      '3' => 0,
      '18' => 0,
      '9' => 0,
      '21' => 0,
      '24' => 0,
      '25' => 0,
      '4' => 0,
      '27' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
  ),
  'field_day_value' => array(
    'id' => 'field_day_value',
    'table' => 'node_data_field_day',
    'field' => 'field_day_value',
  ),
));
$handler->override_option('filters', array(
  'field_day_value' => array(
    'operator' => 'not empty',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'case' => 1,
    'id' => 'field_day_value',
    'table' => 'node_data_field_day',
    'field' => 'field_day_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Hours');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('footer', '<p>&nbsp;</p>
<p>&nbsp;</p>');
$handler->override_option('footer_format', '1');
$handler->override_option('footer_empty', 0);
$handler->override_option('items_per_page', 0);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => 'field_branch_name_value',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'field_day_value' => 'field_day_value',
    'field_separator_days_value' => 'field_separator_days_value',
    'field_day2_value' => 'field_day2_value',
    'field_hours_value' => 'field_hours_value',
    'field_closing_hour_value' => 'field_closing_hour_value',
    'field_branch_name_value' => 'field_branch_name_value',
  ),
  'info' => array(
    'field_day_value' => array(
      'separator' => '',
    ),
    'field_separator_days_value' => array(
      'separator' => '',
    ),
    'field_day2_value' => array(
      'separator' => '',
    ),
    'field_hours_value' => array(
      'separator' => '',
    ),
    'field_closing_hour_value' => array(
      'separator' => '',
    ),
    'field_branch_name_value' => array(
      'sortable' => 0,
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

The multigroup module exposes a filter to Views that should allow you to sync the delta values of the fields in the multigroup. Have you tried that?

bomarmonk’s picture

Does this mean that the fields for my view should include the "delta" designation? My apologies for not understanding the possible configuration options.

markus_petrux’s picture

Well, each field on a multigroup is stored on a separate table. The primary keys for these tables include vid of the node and delta for each field value. That's what generates duplicate records, and that's what the Multigroup exposed filter tries to address by adding conditions for delta keys to the joins on these tables.

Related issue: #416154: Synchronized deltas Views integration: Filter on equal deltas in multigroups

Try it and see if that solves your issue.

bomarmonk’s picture

Any further tips on how to set this up? I tried adding just the grouping field with the delta and this had some rather duplicating results. Do I use deltas on every field? I'm just not sure. Thank you for any pointers. I'll be glad to report back if it works.

hellomobe’s picture

@bomarmonk : Under filter you should have an option for 'content multigroup' -- if you don't see it, try updating your cck to the latest version. Then you should see an option listing your multigroup pairings. It will ask you what field to sync with (choose the one that will always have data - a required field). If you only have one set of multigroups, you should be set.

However, if you have more than one multigroup....(help please)

I have two multigroups sets in one view query. The filters work to group the sets (A set and B set), but they duplicate as follows:

Title ABC
A1 - Delta 0
A2 - Delta 0
B1 - Delta0
B2 - Delta 0

Title ABC
A1 - Delta 0
A2 - Delta 0
B1 - Delta1
B2 - Delta1

Title ABC
A1 - Delta1
A2 - Delta1
B1- Delta 0
B1 - Delta 0

Title ABC
A1- Delta1
A1 - Delta1
B1 - Delta 1
B2 - Delta 1

I'm not sure how to combine them all under one Title ABC. I tried the php custom field using this code but it work...it's not in a node tpl is one issue why. I tried the print_r($data), but I'm not knowledgeable enough to combine all the fields for each set.

print $node->content['group_car_info']['group']['#children'];

hellomobe’s picture

Okay, I discovered the fieldgroup_view_group() function. Is the nodetype suppose to be the name of the content type? If not, what should it be. Here's what I have, but I get the following error and no results. I did some research and unfortunately can't find an explanation/fix for the error.

warning: __clone method called on non-object in C:\xampp\htdocs\drupal\includes\common.inc on line 1722.

$nodetype = 'car_list_feed';
$group_name = 'group_car_details';

$groups = fieldgroup_groups($nodetype);
$group = $groups[$group_name];

// I would suggest here to explore the contents of $group.
// You could change formatter options, for example.

// Create a copy of the node object to make custom changes.
$node_copy = drupal_clone($node);

// Now, you need to remove the delta values that you do not need to
// render a particular subgroup of items from $node_copy.

$subgroup_output = fieldgroup_view_group($group, $node_copy);
hellomobe’s picture

@bomarmonk
Reading your comments more thoroughly, and getting more familiar with my own problem, I think you may have the same need as I did. Sorry for the repeat in #6.

Take a look at this comment http://drupal.org/node/692186#comment-2563668. You can group the multiple values of the multigroup using one of the fields as the sync key value. Notice that the title is the field that syncs with the key, and then you can pull any of the other fields in that group -- in that example it was the url for the title link.

It worked wonderfully for me. Don't use the content-multigroup filter with this solution. Let me know if you have questions in configuring it to your set up and I'll try to help. (I'm not a programmer).

rbrownell’s picture

@bonarmonk
Did you ever get this resolved? I find myself with the exact same issue when it comes to what I am developing. I found hellomobe's solution difficult to understand. (I am not an expert at PHP but I can decypher patterns and either the one suggested by hellomobe is erroneus or I am just not getting it.

I am looking for something that will print:

Date 1
Label1: Price1
Label2: Price2

Date2
Label1: Price1
Label2: Price2

Where as Label and Price are variables that belong to one another and I can have them print one next to the other. In a sense, I almost want a View inside of a view because at some point I am going to want to shove the values into a PayPal button and print these paypal buttons individually. (Uber Cart and others just don't do what I need it to do.)

Any Thoughts? Anyone?

rbrownell’s picture

Status: Postponed (maintainer needs more info) » Fixed

Resolved...

it can be achieved with the content multi-group filter and then group by date.

-R

bomarmonk’s picture

Will this filter also work with other fields, such as a "branch?"

So I have office hours listed on a node that represent a department, let's say it's the node that represents the Sheriff Department, and I want to list office hours for two locations or offices where the sheriff deputies take complaints from the public. This might look like:

  1. Sheriff Node

    1. office hours
    2. location 1
    3. M-W 8:00 a.m. - 5:00 p.m.
      Th-F 10:00 a.m.- 1:00 p.m.

    4. location 2
    5. M-F 9:00 a.m. - 3:00 p.m.

I'm going to try filtering on the location field and see if it now works. Previously, this did not work.

rbrownell’s picture

#11 This is terribly finicky, as I don't think views is yet properly designed to handle such things. (Lots of development will be required on this in the future.) Just keep messing with it and it should eventually work out the way you wanted to. (It took me a whole afternoon of messing around with it to try to get it what I wanted to do.

EDIT: Make sure you use the Backup and Migrate Module frequently when working with this. At least three times I found myself having to rebuild the view because it got messed up and I couldn't find where the error was after reversing all the changes I made it still wouldn't work. BACKUP BACKUP BACKUP BACKUP!

-R

hongpong’s picture

* subscribing

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bomarmonk’s picture

Category: feature » support
Status: Closed (fixed) » Needs review

I think this still needs some documentation/instruction; I've spent some time playing with the multigroup filter and field deltas, etc., but have not achieved the desired result.

bomarmonk’s picture

Yes, I managed to make this work! Hurray! I'll see if I can't add some instructions on how I achieved this.

bomarmonk’s picture

Here is an export of my view; I hope it helps:

$view = new view;
$view->name = 'office_hours';
$view->description = 'A view of a group\'s office hours';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'field_branch_name_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 1,
    'id' => 'field_branch_name_value',
    'table' => 'node_data_field_branch_name',
    'field' => 'field_branch_name_value',
    'relationship' => 'none',
  ),
  'field_day_value' => array(
    'label' => 'Hours',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'custom',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_day_value',
    'table' => 'node_data_field_day',
    'field' => 'field_day_value',
    'relationship' => 'none',
  ),
  'field_separator_days_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_separator_days_value',
    'table' => 'node_data_field_separator_days',
    'field' => 'field_separator_days_value',
    'relationship' => 'none',
  ),
  'field_day2_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_day2_value',
    'table' => 'node_data_field_day2',
    'field' => 'field_day2_value',
    'relationship' => 'none',
  ),
  'field_hours_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 1,
    'link_to_node' => 0,
    'label_type' => 'custom',
    'format' => '12hr',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_hours_value',
    'table' => 'node_data_field_hours',
    'field' => 'field_hours_value',
    'relationship' => 'none',
  ),
  'field_closing_hour_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'custom',
    'format' => '12hr',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_closing_hour_value',
    'table' => 'node_data_field_closing_hour',
    'field' => 'field_closing_hour_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'nid' => array(
    'default_action' => 'not found',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'node',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'not' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '4' => 0,
      '39' => 0,
      '10' => 0,
      '44' => 0,
      '14' => 0,
      '21' => 0,
      '9' => 0,
      '6' => 0,
      '30' => 0,
      '20' => 0,
      '15' => 0,
      '11' => 0,
      '16' => 0,
      '13' => 0,
      '26' => 0,
      '17' => 0,
      '45' => 0,
      '23' => 0,
      '7' => 0,
      '8' => 0,
      '31' => 0,
      '42' => 0,
      '41' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'webform' => 0,
      'casetracker_basic_project' => 0,
      'casetracker_basic_case' => 0,
      'mass_contact' => 0,
      'sitenotes' => 0,
      'weblinks' => 0,
      'panel' => 0,
      'bio' => 0,
      'book' => 0,
      'contact_information' => 0,
      'content_community_center_reserva' => 0,
      'content_county_file_or_form_cck' => 0,
      'content_county_official' => 0,
      'content_facility_sub_page' => 0,
      'content_file_index' => 0,
      'content_group_home_page' => 0,
      'content_minutes_or_agenda_cck' => 0,
      'content_road_report_cck' => 0,
      'county_facility_or_service' => 0,
      'custom_adm_script' => 0,
      'emerg_notice' => 0,
      'node_4web_edit' => 0,
      'page' => 0,
      'profile' => 0,
      'resuseable_location' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '30' => 0,
      '3' => 0,
      '18' => 0,
      '9' => 0,
      '21' => 0,
      '24' => 0,
      '25' => 0,
      '4' => 0,
      '27' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
  ),
  'field_day_value' => array(
    'id' => 'field_day_value',
    'table' => 'node_data_field_day',
    'field' => 'field_day_value',
  ),
));
$handler->override_option('filters', array(
  'multigroup_content_group_home_page_group_biz_hours' => array(
    'operator' => '=',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'content_multigroup_master_field' => 'node_data_field_branch_name',
    'id' => 'multigroup_content_group_home_page_group_biz_hours',
    'table' => 'node',
    'field' => 'multigroup_content_group_home_page_group_biz_hours',
    'relationship' => 'none',
  ),
  'field_day_value' => array(
    'operator' => 'not empty',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'case' => 1,
    'id' => 'field_day_value',
    'table' => 'node_data_field_day',
    'field' => 'field_day_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Hours');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('footer', '<p>&nbsp;</p>
<p>&nbsp;</p>');
$handler->override_option('footer_format', '1');
$handler->override_option('footer_empty', 0);
$handler->override_option('items_per_page', 0);
$handler->override_option('distinct', 0);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => 'field_branch_name_value',
  'override' => 0,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'field_branch_name_value' => 'field_branch_name_value',
    'field_day_value' => 'field_day_value',
    'field_separator_days_value' => 'field_day_value',
    'field_day2_value' => 'field_day_value',
    'field_hours_value' => 'field_hours_value',
    'field_closing_hour_value' => 'field_hours_value',
  ),
  'info' => array(
    'field_branch_name_value' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'field_day_value' => array(
      'sortable' => 0,
      'separator' => ' ',
    ),
    'field_separator_days_value' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'field_day2_value' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'field_hours_value' => array(
      'sortable' => 0,
      'separator' => ' to ',
    ),
    'field_closing_hour_value' => array(
      'sortable' => 0,
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
karens’s picture

Status: Needs review » Fixed

There is no patch to review and this is a support request. I think the proper response is that the views filter needs some better documentation. An export of a view is nice but it uses a bunch of fields and groups that won't exist on anyone else's site, so there is no way to import it.

Marking this fixed because the original support request was answered.

bomarmonk’s picture

You are right, Karen: it would be better if I really documented how this grouping can be accomplished in a view. I'll try to add more explanation at some point that someone can adapt for formal documentation.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.