Skip to content

Commit

Permalink
User story manage biz stories supported as feature module
Browse files Browse the repository at this point in the history
  • Loading branch information
victorkane committed Oct 6, 2010
1 parent f3429f0 commit c45b161
Show file tree
Hide file tree
Showing 8 changed files with 933 additions and 0 deletions.
@@ -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',
);
}
@@ -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',
),
),
);
}
@@ -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;
}
@@ -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"
@@ -0,0 +1,3 @@
<?php

include_once('pft_manage_biz_stories.features.inc');

0 comments on commit c45b161

Please sign in to comment.