Permalink
Browse files

Added option to add several pictures instead of just one

  • Loading branch information...
1 parent e4557c1 commit 2107fae6ec6f23751a637e0901177a8085fb1bb3 @lsolesen lsolesen committed Mar 31, 2012
@@ -49,7 +49,7 @@ function vih_stories_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
- 'weight' => '1',
+ 'weight' => '0',
),
'full' => array(
'label' => 'above',
@@ -107,131 +107,6 @@ function vih_stories_field_default_fields() {
),
);
- // Exported field: 'node-story-field_image'
- $fields['node-story-field_image'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_image',
- 'foreign keys' => array(),
- 'indexes' => array(
- 'fid' => array(
- 0 => 'fid',
- ),
- ),
- 'module' => 'image',
- 'settings' => array(
- 'default_image' => '629',
- 'uri_scheme' => 'public',
- ),
- 'translatable' => '1',
- 'type' => 'image',
- ),
- 'field_instance' => array(
- 'bundle' => 'story',
- 'deleted' => '0',
- 'description' => '<strong>Vigtigt:</strong> Vælg også billedet her. Klik på knappen og gå ind under bibliotek, hvor du kan vælge det.',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'colorbox',
- 'settings' => array(
- 'colorbox_caption' => 'auto',
- 'colorbox_gallery' => 'post',
- 'colorbox_gallery_custom' => '',
- 'colorbox_image_style' => 'large',
- 'colorbox_node_style' => 'medium',
- ),
- 'type' => 'colorbox',
- 'weight' => '0',
- ),
- 'full' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- 'rss' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- 'search_index' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- 'search_result' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- 'teaser' => array(
- 'label' => 'hidden',
- 'module' => 'colorbox',
- 'settings' => array(
- 'colorbox_caption' => 'auto',
- 'colorbox_gallery' => 'post',
- 'colorbox_gallery_custom' => '',
- 'colorbox_image_style' => 'large',
- 'colorbox_node_style' => 'square_thumbnail',
- ),
- 'type' => 'colorbox',
- 'weight' => '-1',
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_image',
- 'label' => 'Billede (VÆLG OGSÅ BILLEDET HER)',
- 'required' => 0,
- 'settings' => array(
- 'alt_field' => TRUE,
- 'file_directory' => 'field/image',
- 'file_extensions' => 'png jpg jpeg',
- 'imagecrop' => array(
- 'content_width' => 0,
- ),
- 'max_filesize' => '',
- 'max_resolution' => '',
- 'min_resolution' => '',
- 'title_field' => '',
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'media',
- 'settings' => array(
- 'allowed_schemes' => array(
- 'oembed' => 0,
- 'private' => 'private',
- 'public' => 'public',
- 'youtube' => 0,
- ),
- 'allowed_types' => array(
- 'audio' => 0,
- 'default' => 0,
- 'image' => 'image',
- 'video' => 0,
- ),
- 'browser_plugins' => array(
- 'library' => 'library',
- 'media_default--media_browser_1' => 'media_default--media_browser_1',
- 'media_internet' => 'media_internet',
- 'upload' => 'upload',
- ),
- 'progress_indicator' => 'throbber',
- ),
- 'type' => 'media_generic',
- 'weight' => '5',
- ),
- ),
- );
-
// Exported field: 'node-story-field_pictures'
$fields['node-story-field_pictures'] = array(
'field_config' => array(
@@ -268,9 +143,16 @@ function vih_stories_field_default_fields() {
'display' => array(
'default' => array(
'label' => 'hidden',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => '3',
+ 'module' => 'colorbox',
+ 'settings' => array(
+ 'colorbox_caption' => 'auto',
+ 'colorbox_gallery' => 'post',
+ 'colorbox_gallery_custom' => '',
+ 'colorbox_image_style' => 'large',
+ 'colorbox_node_style' => 'medium',
+ ),
+ 'type' => 'colorbox',
+ 'weight' => '2',
),
'teaser' => array(
'label' => 'above',
@@ -363,7 +245,7 @@ function vih_stories_field_default_fields() {
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
- 'weight' => '2',
+ 'weight' => '1',
),
'full' => array(
'label' => 'above',
@@ -418,8 +300,6 @@ function vih_stories_field_default_fields() {
// Translatables
// Included for use with string extractors like potx.
- t('<strong>Vigtigt:</strong> Vælg også billedet her. Klik på knappen og gå ind under bibliotek, hvor du kan vælge det.');
- t('Billede (VÆLG OGSÅ BILLEDET HER)');
t('Body');
t('Enter a comma-separated list of words to describe your content.');
t('Pictures');
@@ -8,20 +8,14 @@
* Implements hook_ctools_plugin_api().
*/
function vih_stories_ctools_plugin_api() {
- list($module, $api) = func_get_args();
- if ($module == "strongarm" && $api == "strongarm") {
- return array("version" => "1");
- }
+ return array("version" => "1");
}
/**
* Implements hook_views_api().
*/
function vih_stories_views_api() {
- list($module, $api) = func_get_args();
- if ($module == "views" && $api == "views_default") {
- return array("version" => "3.0");
- }
+ return array("version" => "3.0");
}
/**
@@ -3,7 +3,7 @@ description = "Handles stories"
core = "7.x"
package = "Features"
php = "5.2.4"
-version = "7.x-0.11"
+version = "7.x-0.14"
project = "vih_stories"
dependencies[] = "colorbox"
dependencies[] = "features"
@@ -15,10 +15,10 @@ dependencies[] = "strongarm"
dependencies[] = "taxonomy"
dependencies[] = "views"
dependencies[] = "views_slideshow"
+datestamp = "1331278554"
features[ctools][] = "strongarm:strongarm:1"
features[ctools][] = "views:views_default:3.0"
features[field][] = "node-story-body"
-features[field][] = "node-story-field_image"
features[field][] = "node-story-field_pictures"
features[field][] = "node-story-field_tags"
features[node][] = "story"
@@ -10,77 +10,77 @@
function vih_stories_strongarm() {
$export = array();
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_anonymous_story';
$strongarm->value = 0;
$export['comment_anonymous_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_mode_story';
$strongarm->value = 0;
$export['comment_default_mode_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_per_page_story';
$strongarm->value = '50';
$export['comment_default_per_page_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_form_location_story';
$strongarm->value = 1;
$export['comment_form_location_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_preview_story';
$strongarm->value = '1';
$export['comment_preview_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_story';
$strongarm->value = '0';
$export['comment_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_subject_field_story';
$strongarm->value = 0;
$export['comment_subject_field_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'language_content_type_story';
$strongarm->value = '0';
$export['language_content_type_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_options_story';
$strongarm->value = array();
$export['menu_options_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_parent_story';
$strongarm->value = 'main-menu:0';
$export['menu_parent_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_options_story';
@@ -91,14 +91,14 @@ function vih_stories_strongarm() {
);
$export['node_options_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_preview_story';
$strongarm->value = '1';
$export['node_preview_story'] = $strongarm;
- $strongarm = new stdClass;
+ $strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_submitted_story';
Oops, something went wrong. Retry.

0 comments on commit 2107fae

Please sign in to comment.