Skip to content

Instantly share code, notes, and snippets.

Created Jul 15, 2012
Embed
What would you like to do?
RedHen-VBO Views Export
$view = new view;
$view->name = 'bulk_mailer';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'redhen_contact';
$view->human_name = 'Bulk mailer';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Bulk mailer';
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '4';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all'] = 0;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'views_bulk_operations' => 'views_bulk_operations',
'first_name' => 'first_name',
'last_name' => 'last_name',
'redhen_contact_email' => 'redhen_contact_email',
'membership_state' => 'membership_state',
);
$handler->display->display_options['style_options']['default'] = 'last_name';
$handler->display->display_options['style_options']['info'] = array(
'views_bulk_operations' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'first_name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'last_name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'redhen_contact_email' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'membership_state' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
/* Relationship: Membership: Contact to Membership */
$handler->display->display_options['relationships']['redhen_membership_rel']['id'] = 'redhen_membership_rel';
$handler->display->display_options['relationships']['redhen_membership_rel']['table'] = 'redhen_contact';
$handler->display->display_options['relationships']['redhen_membership_rel']['field'] = 'redhen_membership_rel';
$handler->display->display_options['relationships']['redhen_membership_rel']['required'] = 0;
/* Field: Bulk operations: Contact */
$handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
$handler->display->display_options['fields']['views_bulk_operations']['table'] = 'redhen_contact';
$handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
$handler->display->display_options['fields']['views_bulk_operations']['label'] = 'Send mail';
$handler->display->display_options['fields']['views_bulk_operations']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['external'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['trim'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['alter']['html'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['element_default_classes'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['hide_empty'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['empty_zero'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['entity_load_capacity'] = '10';
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['operations'] = array(
'action::views_bulk_operations_delete_item' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::system_message_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::views_bulk_operations_script_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::views_bulk_operations_modify_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
'settings' => array(
'show_all_tokens' => 1,
'display_values' => array(
'_all_' => '_all_',
),
),
),
'action::views_bulk_operations_argument_selector_action' => array(
'selected' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
'settings' => array(
'url' => '',
),
),
'action::system_goto_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::system_send_email_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::redhen_fields_email_action' => array(
'selected' => 1,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
);
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['enable_select_all_pages'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['display_type'] = '1';
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['display_result'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['merge_single_action'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['force_single'] = 0;
/* Field: Contact: First Name */
$handler->display->display_options['fields']['first_name']['id'] = 'first_name';
$handler->display->display_options['fields']['first_name']['table'] = 'redhen_contact';
$handler->display->display_options['fields']['first_name']['field'] = 'first_name';
$handler->display->display_options['fields']['first_name']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['external'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['first_name']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['first_name']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['trim'] = 0;
$handler->display->display_options['fields']['first_name']['alter']['html'] = 0;
$handler->display->display_options['fields']['first_name']['element_label_colon'] = 1;
$handler->display->display_options['fields']['first_name']['element_default_classes'] = 1;
$handler->display->display_options['fields']['first_name']['hide_empty'] = 0;
$handler->display->display_options['fields']['first_name']['empty_zero'] = 0;
$handler->display->display_options['fields']['first_name']['hide_alter_empty'] = 1;
/* Field: Contact: Last Name */
$handler->display->display_options['fields']['last_name']['id'] = 'last_name';
$handler->display->display_options['fields']['last_name']['table'] = 'redhen_contact';
$handler->display->display_options['fields']['last_name']['field'] = 'last_name';
$handler->display->display_options['fields']['last_name']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['external'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['last_name']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['last_name']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['trim'] = 0;
$handler->display->display_options['fields']['last_name']['alter']['html'] = 0;
$handler->display->display_options['fields']['last_name']['element_label_colon'] = 1;
$handler->display->display_options['fields']['last_name']['element_default_classes'] = 1;
$handler->display->display_options['fields']['last_name']['hide_empty'] = 0;
$handler->display->display_options['fields']['last_name']['empty_zero'] = 0;
$handler->display->display_options['fields']['last_name']['hide_alter_empty'] = 1;
/* Field: Contact: Email */
$handler->display->display_options['fields']['redhen_contact_email']['id'] = 'redhen_contact_email';
$handler->display->display_options['fields']['redhen_contact_email']['table'] = 'field_data_redhen_contact_email';
$handler->display->display_options['fields']['redhen_contact_email']['field'] = 'redhen_contact_email';
$handler->display->display_options['fields']['redhen_contact_email']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['external'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['trim'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['alter']['html'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['element_label_colon'] = 1;
$handler->display->display_options['fields']['redhen_contact_email']['element_default_classes'] = 1;
$handler->display->display_options['fields']['redhen_contact_email']['hide_empty'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['empty_zero'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['redhen_contact_email']['type'] = 'redhen_email_primary';
$handler->display->display_options['fields']['redhen_contact_email']['group_rows'] = 1;
$handler->display->display_options['fields']['redhen_contact_email']['delta_offset'] = '0';
$handler->display->display_options['fields']['redhen_contact_email']['delta_reversed'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['delta_first_last'] = 0;
$handler->display->display_options['fields']['redhen_contact_email']['field_api_classes'] = 0;
/* Field: Membership: State */
$handler->display->display_options['fields']['membership_state']['id'] = 'membership_state';
$handler->display->display_options['fields']['membership_state']['table'] = 'redhen_membership';
$handler->display->display_options['fields']['membership_state']['field'] = 'membership_state';
$handler->display->display_options['fields']['membership_state']['relationship'] = 'redhen_membership_rel';
$handler->display->display_options['fields']['membership_state']['label'] = 'Membership status';
$handler->display->display_options['fields']['membership_state']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['external'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['membership_state']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['membership_state']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['trim'] = 0;
$handler->display->display_options['fields']['membership_state']['alter']['html'] = 0;
$handler->display->display_options['fields']['membership_state']['element_label_colon'] = 1;
$handler->display->display_options['fields']['membership_state']['element_default_classes'] = 1;
$handler->display->display_options['fields']['membership_state']['hide_empty'] = 0;
$handler->display->display_options['fields']['membership_state']['empty_zero'] = 0;
$handler->display->display_options['fields']['membership_state']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['membership_state']['machine_name'] = 0;
/* Filter criterion: Membership: State */
$handler->display->display_options['filters']['membership_state']['id'] = 'membership_state';
$handler->display->display_options['filters']['membership_state']['table'] = 'redhen_membership';
$handler->display->display_options['filters']['membership_state']['field'] = 'membership_state';
$handler->display->display_options['filters']['membership_state']['relationship'] = 'redhen_membership_rel';
$handler->display->display_options['filters']['membership_state']['value'] = array(
'all' => 'all',
1 => '1',
0 => '0',
2 => '2',
);
$handler->display->display_options['filters']['membership_state']['exposed'] = TRUE;
$handler->display->display_options['filters']['membership_state']['expose']['operator_id'] = 'membership_state_op';
$handler->display->display_options['filters']['membership_state']['expose']['label'] = 'State';
$handler->display->display_options['filters']['membership_state']['expose']['operator'] = 'membership_state_op';
$handler->display->display_options['filters']['membership_state']['expose']['identifier'] = 'membership_state';
$handler->display->display_options['filters']['membership_state']['expose']['remember'] = 1;
$handler->display->display_options['filters']['membership_state']['expose']['multiple'] = 1;
$handler->display->display_options['filters']['membership_state']['expose']['reduce'] = 0;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'redhen/bulk-mailer';
@chopper-elation

This comment has been minimized.

Copy link

@chopper-elation chopper-elation commented Dec 4, 2013

Imported this View into Open Outreach version of RedHen CRM and got this error:
Field handler redhen_contact.views_bulk_operations is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment