Commit 1b23d91e authored by ccarigna's avatar ccarigna
Browse files

Added image and file fieldgroups

parent fd3ca86b
......@@ -13,6 +13,10 @@ function uw_ct_event_ctools_plugin_api() {
return array("version" => "3");
}
list($module, $api) = func_get_args();
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
......
<?php
/**
* @file
* uw_ct_event.field_group.inc
*/
/**
* Implements hook_field_group_info().
*/
function uw_ct_event_field_group_info() {
$export = array();
$field_group = new stdClass;
$field_group->api_version = 1;
$field_group->identifier = 'group_upload_file|node|uw_event|form';
$field_group->group_name = 'group_upload_file';
$field_group->entity_type = 'node';
$field_group->bundle = 'uw_event';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Upload a related file',
'weight' => '9',
'children' => array(
0 => 'field_file',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Upload a related file',
'instance_settings' => array(
'required_fields' => 0,
'classes' => '',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$export['group_upload_file|node|uw_event|form'] = $field_group;
$field_group = new stdClass;
$field_group->api_version = 1;
$field_group->identifier = 'group_upload|node|uw_event|form';
$field_group->group_name = 'group_upload';
$field_group->entity_type = 'node';
$field_group->bundle = 'uw_event';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Upload an image',
'weight' => '8',
'children' => array(
0 => 'field_image',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Upload an image',
'instance_settings' => array(
'required_fields' => 0,
'classes' => '',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$export['group_upload|node|uw_event|form'] = $field_group;
return $export;
}
......@@ -7,6 +7,7 @@ dependencies[] = "date_popup"
dependencies[] = "date_repeat"
dependencies[] = "date_views"
dependencies[] = "features"
dependencies[] = "field_group"
dependencies[] = "image"
dependencies[] = "link"
dependencies[] = "location_cck"
......@@ -23,6 +24,7 @@ dependencies[] = "views"
description = "Adds events and event listing pages."
features[context][] = "event_categories"
features[ctools][] = "context:context:3"
features[ctools][] = "field_group:field_group:1"
features[ctools][] = "strongarm:strongarm:1"
features[ctools][] = "views:views_default:3.0"
features[field][] = "node-uw_event-body"
......@@ -36,6 +38,8 @@ features[field][] = "node-uw_event-field_event_moreinfo_link"
features[field][] = "node-uw_event-field_file"
features[field][] = "node-uw_event-field_image"
features[field][] = "node-uw_location-field_location_details"
features[field_group][] = "group_upload_file|node|uw_event|form"
features[field_group][] = "group_upload|node|uw_event|form"
features[node][] = "uw_event"
features[node][] = "uw_location"
features[rdf_mappings][] = "node-uw_event"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment