Skip to content
Browse files

Updating to latest noderelationships patch.

  • Loading branch information...
1 parent ba8aa57 commit 5194a70350c18f8aeb64c304a853bf5fde197e64 @jhedstrom jhedstrom committed Dec 9, 2010
View
4 shift_signup_group/shift_signup_group.features.content.inc
@@ -41,8 +41,8 @@ function shift_signup_group_content_default_fields() {
'active' => '1',
'text_processing' => '0',
'max_length' => '',
- 'allowed_values' => 'apple|Apple Corps
-special|Special Events',
+ 'allowed_values' => 'relationship_1|Relationship 1
+relationship_2|Relationship 2',
'allowed_values_php' => '',
'widget' => array(
'default_value' => array(
View
3 shift_signup_group/shift_signup_group.features.inc
@@ -11,6 +11,9 @@ function shift_signup_group_ctools_plugin_api() {
elseif ($module == "noderelationships" && $api == "default_node_relationships") {
return array("version" => 1);
}
+ elseif ($module == "noderelationships" && $api == "noderelationships") {
+ return array("version" => 1);
+ }
elseif ($module == "strongarm" && $api == "strongarm") {
return array("version" => 1);
}
View
2 shift_signup_group/shift_signup_group.info
@@ -24,7 +24,7 @@ features[content][] = "signup-field_signup_group_count"
features[context][] = "group_display"
features[context][] = "group_shifts"
features[ctools][] = "context:context:3"
-features[ctools][] = "noderelationships:default_node_relationships:1"
+features[ctools][] = "noderelationships:noderelationships:1"
features[ctools][] = "strongarm:strongarm:1"
features[fieldgroup][] = "signup-group_signup_group"
features[node][] = "group"
View
23 shift_signup_group/shift_signup_group.noderelationships.inc
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * Implementation of hook_noderelationships_default_settings().
+ */
+function shift_signup_group_noderelationships_default_settings() {
+ $export = array();
+ $noderelationships_default_setting = new stdClass;
+ $noderelationships_default_setting->disabled = FALSE; /* Edit this to true to make a default noderelationships_default_setting disabled initially */
+ $noderelationships_default_setting->api_version = 1;
+ $noderelationships_default_setting->type_name = 'signup';
+ $noderelationships_default_setting->relation_type = 'noderef';
+ $noderelationships_default_setting->related_type = '';
+ $noderelationships_default_setting->field_name = 'field_signup_group';
+ $noderelationships_default_setting->settings = array(
+ 'search_and_reference_view' => 'noderelationships_noderef:page_table',
+ 'create_and_reference' => 'field_signup_group',
+ );
+ $noderelationships_default_setting->export_key = 'signup__field_signup_group';
+ $export['signup__field_signup_group'] = $noderelationships_default_setting;
+
+ return $export;
+}

0 comments on commit 5194a70

Please sign in to comment.
Something went wrong with that request. Please try again.