From 010fe2a1a671f1c4d1996dcdee72482d03921ac1 Mon Sep 17 00:00:00 2001 From: "little.129@osu.edu" Date: Tue, 26 Feb 2013 15:30:08 -0500 Subject: [PATCH] added weight field for templates, exported from production --- mailit.features.field.inc | 83 +++++++++++++++++++++++++++++++++++++++ mailit.info | 3 +- mailit.strongarm.inc | 4 +- mailit.views_default.inc | 9 ++--- 4 files changed, 91 insertions(+), 8 deletions(-) diff --git a/mailit.features.field.inc b/mailit.features.field.inc index 4a742d9..531edee 100644 --- a/mailit.features.field.inc +++ b/mailit.features.field.inc @@ -3616,6 +3616,88 @@ field_name | field_label | help_text | default_value', ), ); + // Exported field: 'node-mail_template-field_mail_tpl_weight'. + $fields['node-mail_template-field_mail_tpl_weight'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_mail_tpl_weight', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'locked' => '0', + 'module' => 'list', + 'settings' => array( + 'allowed_values' => array( + -10 => '-10', + -9 => '-9', + -8 => '-8', + -7 => '-7', + -6 => '-6', + -5 => '-5', + -4 => '-4', + -3 => '-3', + -2 => '-2', + -1 => '-1', + 0 => '0', + 1 => '1', + 2 => '2', + 3 => '3', + 4 => '4', + 5 => '5', + 6 => '6', + 7 => '7', + 8 => '8', + 9 => '9', + 10 => '10', + ), + 'allowed_values_function' => '', + ), + 'translatable' => '0', + 'type' => 'list_integer', + ), + 'field_instance' => array( + 'bundle' => 'mail_template', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'list', + 'settings' => array(), + 'type' => 'list_default', + 'weight' => 7, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_mail_tpl_weight', + 'label' => 'Weight', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '9', + ), + ), + ); + // Translatables // Included for use with string extractors like potx. t('Archived'); @@ -3652,6 +3734,7 @@ field_name | field_label | help_text | default_value');
  • MailChimp\'s guide to subjects
  • '); t('Variables'); + t('Weight'); t('When a reader hits reply, this address will be used. '); t('facebook'); t('flickr'); diff --git a/mailit.info b/mailit.info index 862ba47..634800e 100644 --- a/mailit.info +++ b/mailit.info @@ -29,7 +29,7 @@ dependencies[] = text dependencies[] = token dependencies[] = views dependencies[] = wysiwyg -datestamp = 1361211882 +datestamp = 1361888251 features[ctools][] = field_group:field_group:1 features[ctools][] = strongarm:strongarm:1 features[ctools][] = views:views_default:3.0 @@ -83,6 +83,7 @@ features[field][] = node-mail_template-field_mail_tpl_id features[field][] = node-mail_template-field_mail_tpl_media features[field][] = node-mail_template-field_mail_tpl_preview features[field][] = node-mail_template-field_mail_tpl_variables +features[field][] = node-mail_template-field_mail_tpl_weight features[field_group][] = group_mail_cpn_email|node|mail_campaign|form features[field_group][] = group_mail_cpn_links|node|mail_campaign|form features[field_group][] = group_mail_cpn_tpl_fields|node|mail_campaign|form diff --git a/mailit.strongarm.inc b/mailit.strongarm.inc index 43030d1..88f8c65 100644 --- a/mailit.strongarm.inc +++ b/mailit.strongarm.inc @@ -187,7 +187,7 @@ function mailit_strongarm() { $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; $strongarm->name = 'mimemail_linkonly'; - $strongarm->value = 0; + $strongarm->value = 1; $export['mimemail_linkonly'] = $strongarm; $strongarm = new stdClass(); @@ -222,7 +222,7 @@ function mailit_strongarm() { $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; $strongarm->name = 'mimemail_sitestyle'; - $strongarm->value = 1; + $strongarm->value = 0; $export['mimemail_sitestyle'] = $strongarm; $strongarm = new stdClass(); diff --git a/mailit.views_default.inc b/mailit.views_default.inc index 9bc8c75..9907ff3 100644 --- a/mailit.views_default.inc +++ b/mailit.views_default.inc @@ -372,11 +372,10 @@ function mailit_views_default_views() { $handler->display->display_options['fields']['field_mail_tpl_description']['label'] = ''; $handler->display->display_options['fields']['field_mail_tpl_description']['exclude'] = TRUE; $handler->display->display_options['fields']['field_mail_tpl_description']['element_label_colon'] = FALSE; - /* Sort criterion: Content: Post date */ - $handler->display->display_options['sorts']['created']['id'] = 'created'; - $handler->display->display_options['sorts']['created']['table'] = 'node'; - $handler->display->display_options['sorts']['created']['field'] = 'created'; - $handler->display->display_options['sorts']['created']['order'] = 'DESC'; + /* Sort criterion: Content: Weight (field_mail_tpl_weight) */ + $handler->display->display_options['sorts']['field_mail_tpl_weight_value']['id'] = 'field_mail_tpl_weight_value'; + $handler->display->display_options['sorts']['field_mail_tpl_weight_value']['table'] = 'field_data_field_mail_tpl_weight'; + $handler->display->display_options['sorts']['field_mail_tpl_weight_value']['field'] = 'field_mail_tpl_weight_value'; /* Filter criterion: Content: Published */ $handler->display->display_options['filters']['status']['id'] = 'status'; $handler->display->display_options['filters']['status']['table'] = 'node';