-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User story manage biz stories supported as feature module
- Loading branch information
1 parent
f3429f0
commit c45b161
Showing
8 changed files
with
933 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.features.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 changes: 24 additions & 0 deletions
24
...dules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.features.taxonomy.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 changes: 28 additions & 0 deletions
28
...ustom/features/pft_manage_biz_stories/pft_manage_biz_stories.features.user_permission.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 changes: 32 additions & 0 deletions
32
sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 changes: 3 additions & 0 deletions
3
sites/all/modules/custom/features/pft_manage_biz_stories/pft_manage_biz_stories.module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
<?php | |||
|
|||
include_once('pft_manage_biz_stories.features.inc'); |
Oops, something went wrong.