Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

User story manage biz stories supported as feature module

  • Loading branch information...
commit c45b16147ff472766681c5d51c2b34e6d421810a 1 parent f3429f0
Victor Kane authored
43 sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.features.inc
View
@@ -0,0 +1,43 @@
+<?php
+
+/**
+ * Implementation of hook_ctools_plugin_api().
+ */
+function pft_manage_biz_stories_ctools_plugin_api() {
+ list($module, $api) = func_get_args();
+ if ($module == "page_manager" && $api == "pages_default") {
+ return array("version" => 1);
+ }
+ elseif ($module == "strongarm" && $api == "strongarm") {
+ return array("version" => 1);
+ }
+}
+
+/**
+ * Implementation of hook_node_info().
+ */
+function pft_manage_biz_stories_node_info() {
+ $items = array(
+ 'biz_story' => array(
+ 'name' => t('Biz story'),
+ 'module' => 'features',
+ 'description' => t('Business story (a problem, a value, a feature). Taken together, they can be viewed in a Business model view (based on O\'Reilly\'s meme map business model.'),
+ 'has_title' => '1',
+ 'title_label' => t('Name'),
+ 'has_body' => '1',
+ 'body_label' => t('Description'),
+ 'min_word_count' => '0',
+ 'help' => '',
+ ),
+ );
+ return $items;
+}
+
+/**
+ * Implementation of hook_views_api().
+ */
+function pft_manage_biz_stories_views_api() {
+ return array(
+ 'api' => '2',
+ );
+}
24 sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.features.taxonomy.inc
View
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * Implementation of hook_taxonomy_default_vocabularies().
+ */
+function pft_manage_biz_stories_taxonomy_default_vocabularies() {
+ return array(
+ 'biz_story_type' => array(
+ 'name' => 'Biz Story Type',
+ 'description' => 'Business Story types',
+ 'help' => '',
+ 'relations' => '1',
+ 'hierarchy' => '0',
+ 'multiple' => '0',
+ 'required' => '0',
+ 'tags' => '0',
+ 'module' => 'features_biz_story_type',
+ 'weight' => '0',
+ 'nodes' => array(
+ 'biz_story' => 'biz_story',
+ ),
+ ),
+ );
+}
28 ...s/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.features.user_permission.inc
View
@@ -0,0 +1,28 @@
+<?php
+
+/**
+ * Implementation of hook_user_default_permissions().
+ */
+function pft_manage_biz_stories_user_default_permissions() {
+ $permissions = array();
+
+ // Exported permission: create biz_story content
+ $permissions['create biz_story content'] = array(
+ 'name' => 'create biz_story content',
+ 'roles' => array(
+ '0' => 'administrator',
+ '1' => 'authenticated user',
+ ),
+ );
+
+ // Exported permission: edit own biz_story content
+ $permissions['edit own biz_story content'] = array(
+ 'name' => 'edit own biz_story content',
+ 'roles' => array(
+ '0' => 'administrator',
+ '1' => 'authenticated user',
+ ),
+ );
+
+ return $permissions;
+}
32 sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.info
View
@@ -0,0 +1,32 @@
+core = "6.x"
+dependencies[] = "features"
+dependencies[] = "og_views"
+dependencies[] = "page_manager"
+dependencies[] = "strongarm"
+dependencies[] = "taxonomy"
+dependencies[] = "views_bulk_operations"
+description = "Manage biz stories making up the business model"
+features[ctools][] = "page_manager:pages_default:1"
+features[ctools][] = "strongarm:strongarm:1"
+features[node][] = "biz_story"
+features[page_manager_handlers][] = "node_view_panel_context_7"
+features[taxonomy][] = "biz_story_type"
+features[user_permission][] = "create biz_story content"
+features[user_permission][] = "edit own biz_story content"
+features[variable][] = "comment_anonymous_biz_story"
+features[variable][] = "comment_biz_story"
+features[variable][] = "comment_controls_biz_story"
+features[variable][] = "comment_default_mode_biz_story"
+features[variable][] = "comment_default_order_biz_story"
+features[variable][] = "comment_default_per_page_biz_story"
+features[variable][] = "comment_form_location_biz_story"
+features[variable][] = "comment_preview_biz_story"
+features[variable][] = "comment_subject_field_biz_story"
+features[variable][] = "node_options_biz_story"
+features[variable][] = "og_content_type_usage_biz_story"
+features[views][] = "list_biz_stories"
+features[views_api][] = "api:2"
+name = "PFT manage biz stories"
+package = "Features"
+project = "pft_manage_biz_stories"
+version = "6.x-1.0-alpha1"
3  sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.module
View
@@ -0,0 +1,3 @@
+<?php
+
+include_once('pft_manage_biz_stories.features.inc');
323 sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.pages_default.inc
View
@@ -0,0 +1,323 @@
+<?php
+
+/**
+ * Implementation of hook_default_page_manager_handlers().
+ */
+function pft_manage_biz_stories_default_page_manager_handlers() {
+ $export = array();
+ $handler = new stdClass;
+ $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
+ $handler->api_version = 1;
+ $handler->name = 'node_view_panel_context_7';
+ $handler->task = 'node_view';
+ $handler->subtask = '';
+ $handler->handler = 'panel_context';
+ $handler->weight = -29;
+ $handler->conf = array(
+ 'title' => 'Biz story variant',
+ 'no_blocks' => 0,
+ 'pipeline' => 'standard',
+ 'css_id' => '',
+ 'css' => '',
+ 'contexts' => array(
+ 0 => array(
+ 'name' => 'node',
+ 'id' => 1,
+ 'identifier' => 'Node_4',
+ 'keyword' => 'node_4',
+ 'context_settings' => array(
+ 'node' => 'Ut venenatis convallis tortor... [nid: 4]',
+ 'nid' => '4',
+ ),
+ ),
+ ),
+ 'relationships' => array(
+ 0 => array(
+ 'context' => 'argument_nid_1',
+ 'name' => 'node_from_noderef',
+ 'id' => 1,
+ 'identifier' => 'User story node from reference',
+ 'keyword' => 'user-story-nodereference',
+ 'relationship_settings' => array(
+ 'field_name' => 'field_issue_user_story',
+ ),
+ ),
+ ),
+ 'access' => array(
+ 'plugins' => array(
+ 0 => array(
+ 'name' => 'node_type',
+ 'settings' => array(
+ 'type' => array(
+ 'biz_story' => 'biz_story',
+ ),
+ ),
+ 'context' => 'argument_nid_1',
+ 'not' => FALSE,
+ ),
+ ),
+ 'logic' => 'and',
+ ),
+ );
+ $display = new panels_display;
+ $display->api_version = 1;
+ $display->layout = 'pft_column_two';
+ $display->layout_settings = array();
+ $display->panel_settings = array(
+ 'style_settings' => array(
+ 'default' => array(
+ 'corner_location' => 'pane',
+ ),
+ 'left' => NULL,
+ 'middle' => NULL,
+ 'right' => NULL,
+ 'main' => NULL,
+ 'aside_beta' => NULL,
+ 'header_beta' => array(
+ 'title' => '',
+ 'filling_tabs' => 'disabled',
+ ),
+ 'aside_alpha' => NULL,
+ 'main1' => array(
+ 'title' => '',
+ 'filling_tabs' => 'disabled',
+ ),
+ 'header_alpha' => NULL,
+ 'main2' => NULL,
+ 'main3' => NULL,
+ ),
+ 'style' => 'rounded_corners',
+ 'header_alpha' => array(
+ 'style' => 'default',
+ ),
+ 'header_beta' => array(
+ 'style' => 'tabs',
+ ),
+ 'main1' => array(
+ 'style' => 'tabs',
+ ),
+ );
+ $display->cache = array();
+ $display->title = 'Issue: %node:title';
+ $display->content = array();
+ $display->panels = array();
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-1';
+ $pane->panel = 'aside_beta';
+ $pane->type = 'block';
+ $pane->subtype = 'og-0';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'override_title' => 0,
+ 'override_title_text' => '',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => NULL,
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 0;
+ $display->content['new-1'] = $pane;
+ $display->panels['aside_beta'][0] = 'new-1';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-2';
+ $pane->panel = 'aside_beta';
+ $pane->type = 'node_author';
+ $pane->subtype = 'node_author';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'link' => 1,
+ 'context' => 'argument_nid_1',
+ 'override_title' => 0,
+ 'override_title_text' => '',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => NULL,
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 1;
+ $display->content['new-2'] = $pane;
+ $display->panels['aside_beta'][1] = 'new-2';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-3';
+ $pane->panel = 'header_alpha';
+ $pane->type = 'node_title';
+ $pane->subtype = 'node_title';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'link' => 0,
+ 'context' => 'argument_nid_1',
+ 'override_title' => 1,
+ 'override_title_text' => 'Biz story',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => array(
+ 'id' => '',
+ 'class' => '',
+ 'grid' => '24',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'pad' => '',
+ 'push' => '',
+ 'pull' => '',
+ 'alpha' => 1,
+ 'omega' => 1,
+ ),
+ 'style' => 'precision_grid',
+ );
+ $pane->css = array(
+ 'css_id' => '',
+ 'css_class' => 'title',
+ );
+ $pane->extras = array();
+ $pane->position = 0;
+ $display->content['new-3'] = $pane;
+ $display->panels['header_alpha'][0] = 'new-3';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-4';
+ $pane->panel = 'header_alpha';
+ $pane->type = 'node_terms';
+ $pane->subtype = 'node_terms';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'vid' => '0',
+ 'term_format' => 'ul',
+ 'link' => 1,
+ 'term_delimiter' => ', ',
+ 'context' => 'argument_nid_1',
+ 'override_title' => 0,
+ 'override_title_text' => '',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => array(
+ 'id' => '',
+ 'class' => '',
+ 'grid' => '10',
+ 'prefix' => '',
+ 'suffix' => '',
+ 'pad' => '',
+ 'push' => '',
+ 'pull' => '',
+ 'alpha' => 1,
+ 'omega' => 1,
+ ),
+ 'style' => 'precision_grid',
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 1;
+ $display->content['new-4'] = $pane;
+ $display->panels['header_alpha'][1] = 'new-4';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-5';
+ $pane->panel = 'main1';
+ $pane->type = 'node_body';
+ $pane->subtype = 'node_body';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'context' => 'argument_nid_1',
+ 'override_title' => 1,
+ 'override_title_text' => 'Description',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => NULL,
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 0;
+ $display->content['new-5'] = $pane;
+ $display->panels['main1'][0] = 'new-5';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-6';
+ $pane->panel = 'main2';
+ $pane->type = 'node_created';
+ $pane->subtype = 'node_created';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'format' => 'large',
+ 'context' => 'argument_nid_1',
+ 'override_title' => 0,
+ 'override_title_text' => '',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => NULL,
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 0;
+ $display->content['new-6'] = $pane;
+ $display->panels['main2'][0] = 'new-6';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-7';
+ $pane->panel = 'main2';
+ $pane->type = 'node_updated';
+ $pane->subtype = 'node_updated';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'format' => 'large',
+ 'context' => 'argument_nid_1',
+ 'override_title' => 0,
+ 'override_title_text' => '',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => NULL,
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 1;
+ $display->content['new-7'] = $pane;
+ $display->panels['main2'][1] = 'new-7';
+ $pane = new stdClass;
+ $pane->api_version = 1;
+ $pane->pid = 'new-8';
+ $pane->panel = 'main2';
+ $pane->type = 'node_links';
+ $pane->subtype = 'node_links';
+ $pane->shown = TRUE;
+ $pane->access = array();
+ $pane->configuration = array(
+ 'override_title' => 0,
+ 'override_title_text' => '',
+ 'teaser' => 1,
+ 'identifier' => '',
+ 'link' => 1,
+ 'context' => 'argument_nid_1',
+ );
+ $pane->cache = array();
+ $pane->style = array(
+ 'settings' => NULL,
+ );
+ $pane->css = array();
+ $pane->extras = array();
+ $pane->position = 2;
+ $display->content['new-8'] = $pane;
+ $display->panels['main2'][2] = 'new-8';
+ $display->hide_title = PANELS_TITLE_FIXED;
+ $display->title_pane = '0';
+ $handler->conf['display'] = $display;
+
+ $export['node_view_panel_context_7'] = $handler;
+ return $export;
+}
89 sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.strongarm.inc
View
@@ -0,0 +1,89 @@
+<?php
+
+/**
+ * Implementation of hook_strongarm().
+ */
+function pft_manage_biz_stories_strongarm() {
+ $export = array();
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_anonymous_biz_story';
+ $strongarm->value = 0;
+
+ $export['comment_anonymous_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_biz_story';
+ $strongarm->value = '2';
+
+ $export['comment_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_controls_biz_story';
+ $strongarm->value = '3';
+
+ $export['comment_controls_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_default_mode_biz_story';
+ $strongarm->value = '4';
+
+ $export['comment_default_mode_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_default_order_biz_story';
+ $strongarm->value = '1';
+
+ $export['comment_default_order_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_default_per_page_biz_story';
+ $strongarm->value = '50';
+
+ $export['comment_default_per_page_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_form_location_biz_story';
+ $strongarm->value = '0';
+
+ $export['comment_form_location_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_preview_biz_story';
+ $strongarm->value = '1';
+
+ $export['comment_preview_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'comment_subject_field_biz_story';
+ $strongarm->value = '1';
+
+ $export['comment_subject_field_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'node_options_biz_story';
+ $strongarm->value = array(
+ 0 => 'status',
+ 1 => 'revision',
+ );
+
+ $export['node_options_biz_story'] = $strongarm;
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'og_content_type_usage_biz_story';
+ $strongarm->value = 'group_post_wiki';
+
+ $export['og_content_type_usage_biz_story'] = $strongarm;
+ return $export;
+}
391 sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.views_default.inc
View
@@ -0,0 +1,391 @@
+<?php
+
+/**
+ * Implementation of hook_views_default_views().
+ */
+function pft_manage_biz_stories_views_default_views() {
+ $views = array();
+
+ // Exported view: list_biz_stories
+ $view = new view;
+ $view->name = 'list_biz_stories';
+ $view->description = 'List business stories viewable by a project team';
+ $view->tag = 'PFT';
+ $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(
+ 'title' => 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' => 1,
+ 'exclude' => 0,
+ 'id' => 'title',
+ 'table' => 'node',
+ 'field' => 'title',
+ 'relationship' => 'none',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ ),
+ 'tid' => 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,
+ 'type' => 'separator',
+ 'separator' => ', ',
+ 'link_to_taxonomy' => 0,
+ 'limit' => 1,
+ 'vids' => array(
+ '4' => 4,
+ '3' => 0,
+ '1' => 0,
+ '2' => 0,
+ ),
+ 'exclude' => 1,
+ 'id' => 'tid',
+ 'table' => 'term_node',
+ 'field' => 'tid',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'edit_node' => array(
+ 'label' => '',
+ 'alter' => array(
+ 'alter_text' => 1,
+ 'text' => '<small>[[edit_node]]</small>',
+ '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,
+ 'text' => '',
+ 'exclude' => 0,
+ 'id' => 'edit_node',
+ 'table' => 'node',
+ 'field' => 'edit_node',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('sorts', array(
+ 'weight' => array(
+ 'order' => 'DESC',
+ 'id' => 'weight',
+ 'table' => 'term_data',
+ 'field' => 'weight',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ 'title' => array(
+ 'order' => 'ASC',
+ 'id' => 'title',
+ 'table' => 'node',
+ 'field' => 'title',
+ 'override' => array(
+ 'button' => 'Override',
+ ),
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('filters', array(
+ 'type' => array(
+ 'operator' => 'in',
+ 'value' => array(
+ 'biz_story' => 'biz_story',
+ ),
+ 'group' => '0',
+ 'exposed' => FALSE,
+ 'expose' => array(
+ 'operator' => FALSE,
+ 'label' => '',
+ ),
+ 'id' => 'type',
+ 'table' => 'node',
+ 'field' => 'type',
+ 'relationship' => 'none',
+ ),
+ 'picg' => array(
+ 'id' => 'picg',
+ 'table' => 'og_ancestry',
+ 'field' => 'picg',
+ ),
+ ));
+ $handler->override_option('access', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('cache', array(
+ 'type' => 'none',
+ ));
+ $handler->override_option('title', 'Biz model');
+ $handler->override_option('items_per_page', 0);
+ $handler->override_option('use_more', 0);
+ $handler->override_option('use_more_always', 0);
+ $handler->override_option('use_more_text', 'page view with bulk operations');
+ $handler->override_option('style_plugin', 'table');
+ $handler->override_option('style_options', array(
+ 'grouping' => 'tid',
+ 'override' => 0,
+ 'sticky' => 1,
+ 'order' => 'desc',
+ 'columns' => array(
+ 'title' => 'title',
+ 'tid' => 'tid',
+ 'edit_node' => 'title',
+ ),
+ 'info' => array(
+ 'title' => array(
+ 'sortable' => 0,
+ 'separator' => ' ',
+ ),
+ 'tid' => array(
+ 'separator' => '',
+ ),
+ 'edit_node' => array(
+ 'separator' => '',
+ ),
+ ),
+ 'default' => '-1',
+ ));
+ $handler = $view->new_display('block', 'Block', 'block_1');
+ $handler->override_option('block_description', '');
+ $handler->override_option('block_caching', -1);
+ $handler = $view->new_display('page', 'Bulk Operations Page', 'page_1');
+ $handler->override_option('arguments', array(
+ 'group_nid' => array(
+ 'default_action' => 'empty',
+ 'style_plugin' => 'default_summary',
+ 'style_options' => array(),
+ 'wildcard' => 'all',
+ 'wildcard_substitution' => 'All',
+ 'title' => '',
+ 'breadcrumb' => '',
+ 'default_argument_type' => 'php',
+ 'default_argument' => '',
+ 'validate_type' => 'none',
+ 'validate_fail' => 'not found',
+ 'break_phrase' => 0,
+ 'not' => 0,
+ 'id' => 'group_nid',
+ 'table' => 'og_ancestry',
+ 'field' => 'group_nid',
+ 'validate_user_argument_type' => 'uid',
+ 'validate_user_roles' => array(
+ '2' => 0,
+ '3' => 0,
+ ),
+ 'override' => array(
+ 'button' => 'Use default',
+ ),
+ 'relationship' => 'none',
+ 'default_options_div_prefix' => '',
+ 'default_argument_fixed' => '',
+ 'default_argument_user' => 0,
+ 'default_argument_php' => 'return ',
+ 'validate_argument_node_type' => array(
+ 'project' => 0,
+ 'user_story' => 0,
+ 'issue' => 0,
+ 'role' => 0,
+ 'biz_story' => 0,
+ 'page' => 0,
+ 'story' => 0,
+ ),
+ 'validate_argument_node_access' => 0,
+ 'validate_argument_nid_type' => 'nid',
+ 'validate_argument_vocabulary' => array(
+ '4' => 0,
+ '3' => 0,
+ '1' => 0,
+ '2' => 0,
+ ),
+ 'validate_argument_type' => 'tid',
+ 'validate_argument_transform' => 0,
+ 'validate_user_restrict_roles' => 0,
+ 'validate_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP',
+ 'validate_argument_group_node_type' => array(
+ 'project' => 0,
+ ),
+ 'validate_argument_php' => '',
+ ),
+ ));
+ $handler->override_option('filters', array(
+ 'type' => array(
+ 'operator' => 'in',
+ 'value' => array(
+ 'biz_story' => 'biz_story',
+ ),
+ 'group' => '0',
+ 'exposed' => FALSE,
+ 'expose' => array(
+ 'operator' => FALSE,
+ 'label' => '',
+ ),
+ 'id' => 'type',
+ 'table' => 'node',
+ 'field' => 'type',
+ 'relationship' => 'none',
+ ),
+ ));
+ $handler->override_option('style_plugin', 'bulk');
+ $handler->override_option('style_options', array(
+ 'grouping' => 'tid',
+ 'override' => 0,
+ 'sticky' => 1,
+ 'order' => 'asc',
+ 'columns' => array(
+ 'title' => 'title',
+ 'tid' => 'tid',
+ 'edit_node' => 'edit_node',
+ ),
+ 'info' => array(
+ 'title' => array(
+ 'sortable' => 0,
+ 'separator' => '',
+ ),
+ 'tid' => array(
+ 'separator' => '',
+ ),
+ 'edit_node' => array(
+ 'separator' => '',
+ ),
+ ),
+ 'default' => '-1',
+ 'execution_type' => '1',
+ 'display_type' => '0',
+ 'hide_select_all' => 0,
+ 'skip_confirmation' => 1,
+ 'display_result' => 1,
+ 'merge_single_action' => 1,
+ 'selected_operations' => array(
+ 'og_add_group_action' => 'og_add_group_action',
+ 'views_bulk_operations_delete_node_action' => 'views_bulk_operations_delete_node_action',
+ 'og_make_private_action' => 'og_make_private_action',
+ 'og_make_public_action' => 'og_make_public_action',
+ 'views_bulk_operations_fields_action' => 'views_bulk_operations_fields_action',
+ 'views_bulk_operations_taxonomy_action' => 'views_bulk_operations_taxonomy_action',
+ 'og_remove_group_action' => 'og_remove_group_action',
+ 'node_mass_update:0ccad85c1ebe4c9ceada1aa64293b080' => 'node_mass_update:0ccad85c1ebe4c9ceada1aa64293b080',
+ 'node_unpublish_action' => 'node_unpublish_action',
+ 'node_assign_owner_action' => 0,
+ 'node_mass_update:a27b9efabcd054685a549378b174ad11' => 0,
+ 'system_message_action' => 0,
+ 'views_bulk_operations_action' => 0,
+ 'views_bulk_operations_script_action' => 0,
+ 'node_make_sticky_action' => 0,
+ 'node_make_unsticky_action' => 0,
+ 'node_mass_update:c4d3b28efb86fd703619a50b74d43794' => 0,
+ 'views_bulk_operations_argument_selector_action' => 0,
+ 'node_promote_action' => 0,
+ 'node_mass_update:14de7d028b4bffdf2b4a266562ca18ac' => 0,
+ 'node_mass_update:9c585624b9b3af0b4687d5f97f35e047' => 0,
+ 'node_publish_action' => 0,
+ 'system_goto_action' => 0,
+ 'og_remove_groups_action' => 0,
+ 'node_unpromote_action' => 0,
+ 'node_mass_update:8ce21b08bb8e773d10018b484fe4815e' => 0,
+ 'node_save_action' => 0,
+ 'system_send_email_action' => 0,
+ 'node_unpublish_by_keyword_action' => 0,
+ 'pathauto_node_update_alias_multiple:620e193b20ba9caa374fea9ca0ad38f0' => 0,
+ ),
+ 'views_bulk_operations_fields_action' => array(
+ 'php_code' => 0,
+ 'display_fields' => array(
+ 'field_project_short_name' => 'field_project_short_name',
+ 'field_project_start' => 'field_project_start',
+ 'field_project_end' => 'field_project_end',
+ 'field_us_role' => 'field_us_role',
+ 'field_us_confirmation' => 'field_us_confirmation',
+ 'field_us_conversation' => 'field_us_conversation',
+ 'field_us_conversation_image' => 'field_us_conversation_image',
+ 'field_us_priority' => 'field_us_priority',
+ 'field_us_points' => 'field_us_points',
+ 'field_us_burned_points' => 'field_us_burned_points',
+ 'field_issue_user_story' => 'field_issue_user_story',
+ 'field_issue_assigned_to' => 'field_issue_assigned_to',
+ ),
+ '_error_element_base' => 'style_options][views_bulk_operations_fields_action][',
+ ),
+ ));
+ $handler->override_option('path', 'view/list/biz-stories/%');
+ $handler->override_option('menu', array(
+ 'type' => 'none',
+ 'title' => '',
+ 'description' => '',
+ 'weight' => 0,
+ 'name' => 'navigation',
+ ));
+ $handler->override_option('tab_options', array(
+ 'type' => 'none',
+ 'title' => '',
+ 'description' => '',
+ 'weight' => 0,
+ 'name' => 'navigation',
+ ));
+
+ $views[$view->name] = $view;
+
+ return $views;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.