Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to groups view to tweak path so it doesn't show "undefined off…

…set" error.
  • Loading branch information...
commit 3c154fa52589e2957a10eafbb1c7569ca6e77aed 1 parent eb85333
Paul Mackay authored
View
5 debut_group.features.inc
@@ -22,10 +22,7 @@ function debut_group_ctools_plugin_api() {
* Implements hook_views_api().
*/
function debut_group_views_api() {
- list($module, $api) = func_get_args();
- if ($module == "views" && $api == "views_default") {
- return array("version" => "3.0");
- }
+ return array("version" => "3.0");
}
/**
View
17 debut_group.features.user_permission.inc
@@ -10,7 +10,7 @@
function debut_group_user_default_permissions() {
$permissions = array();
- // Exported permission: administer group
+ // Exported permission: administer group.
$permissions['administer group'] = array(
'name' => 'administer group',
'roles' => array(
@@ -19,34 +19,39 @@ function debut_group_user_default_permissions() {
'module' => 'og',
);
- // Exported permission: create group content
+ // Exported permission: create group content.
$permissions['create group content'] = array(
'name' => 'create group content',
'roles' => array(),
+ 'module' => 'node',
);
- // Exported permission: delete any group content
+ // Exported permission: delete any group content.
$permissions['delete any group content'] = array(
'name' => 'delete any group content',
'roles' => array(),
+ 'module' => 'node',
);
- // Exported permission: delete own group content
+ // Exported permission: delete own group content.
$permissions['delete own group content'] = array(
'name' => 'delete own group content',
'roles' => array(),
+ 'module' => 'node',
);
- // Exported permission: edit any group content
+ // Exported permission: edit any group content.
$permissions['edit any group content'] = array(
'name' => 'edit any group content',
'roles' => array(),
+ 'module' => 'node',
);
- // Exported permission: edit own group content
+ // Exported permission: edit own group content.
$permissions['edit own group content'] = array(
'name' => 'edit own group content',
'roles' => array(),
+ 'module' => 'node',
);
return $permissions;
View
89 debut_group.info
@@ -1,44 +1,45 @@
-name = "Debut Group"
-description = "A group content type and associated displays."
-core = "7.x"
-package = "Features"
-php = "5.2.4"
-version = "7.x-0.1"
-project = "debut_group"
-dependencies[] = "context"
-dependencies[] = "features"
-dependencies[] = "og"
-dependencies[] = "og_context"
-dependencies[] = "og_register"
-dependencies[] = "og_ui"
-dependencies[] = "strongarm"
-dependencies[] = "views"
-features[context][] = "group-content-type"
-features[ctools][] = "context:context:3"
-features[ctools][] = "strongarm:strongarm:1"
-features[ctools][] = "views:views_default:3.0"
-features[field][] = "node-blog-group_audience"
-features[field][] = "node-group-body"
-features[field][] = "node-group-group_group"
-features[node][] = "group"
-features[user_permission][] = "administer group"
-features[user_permission][] = "create group content"
-features[user_permission][] = "delete any group content"
-features[user_permission][] = "delete own group content"
-features[user_permission][] = "edit any group content"
-features[user_permission][] = "edit own group content"
-features[variable][] = "comment_anonymous_group"
-features[variable][] = "comment_default_mode_group"
-features[variable][] = "comment_default_per_page_group"
-features[variable][] = "comment_form_location_group"
-features[variable][] = "comment_group"
-features[variable][] = "comment_preview_group"
-features[variable][] = "comment_subject_field_group"
-features[variable][] = "menu_options_group"
-features[variable][] = "menu_parent_group"
-features[variable][] = "node_options_group"
-features[variable][] = "node_preview_group"
-features[variable][] = "node_submitted_group"
-features[variable][] = "og_group_content_type_article"
-features[variable][] = "og_group_content_type_group"
-features[views_view][] = "group"
+name = Debut Group
+description = A group content type and associated displays.
+core = 7.x
+package = Features
+php = 5.2.4
+version = 7.x-0.1
+project = debut_group
+dependencies[] = context
+dependencies[] = features
+dependencies[] = og
+dependencies[] = og_context
+dependencies[] = og_register
+dependencies[] = og_ui
+dependencies[] = strongarm
+dependencies[] = views
+features[context][] = group-content-type
+features[ctools][] = context:context:3
+features[ctools][] = strongarm:strongarm:1
+features[ctools][] = views:views_default:3.0
+features[features_api][] = api:1
+features[field][] = node-blog-group_audience
+features[field][] = node-group-body
+features[field][] = node-group-group_group
+features[node][] = group
+features[user_permission][] = administer group
+features[user_permission][] = create group content
+features[user_permission][] = delete any group content
+features[user_permission][] = delete own group content
+features[user_permission][] = edit any group content
+features[user_permission][] = edit own group content
+features[variable][] = comment_anonymous_group
+features[variable][] = comment_default_mode_group
+features[variable][] = comment_default_per_page_group
+features[variable][] = comment_form_location_group
+features[variable][] = comment_group
+features[variable][] = comment_preview_group
+features[variable][] = comment_subject_field_group
+features[variable][] = menu_options_group
+features[variable][] = menu_parent_group
+features[variable][] = node_options_group
+features[variable][] = node_preview_group
+features[variable][] = node_submitted_group
+features[variable][] = og_group_content_type_article
+features[variable][] = og_group_content_type_group
+features[views_view][] = group
View
4 debut_group.views_default.inc
@@ -97,7 +97,7 @@ function debut_group_views_default_views() {
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
- $handler->display->display_options['path'] = 'group';
+ $handler->display->display_options['path'] = 'groups';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Groups';
$handler->display->display_options['menu']['weight'] = '0';
@@ -109,7 +109,7 @@ function debut_group_views_default_views() {
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['style_plugin'] = 'rss';
$handler->display->display_options['row_plugin'] = 'node_rss';
- $handler->display->display_options['path'] = 'group/feed';
+ $handler->display->display_options['path'] = 'groups/feed';
$handler->display->display_options['displays'] = array(
'page_1' => 'page_1',
'default' => 0,
Please sign in to comment.
Something went wrong with that request. Please try again.