Skip to content

Commit

Permalink
added weight field for templates, exported from production
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlttl committed Feb 26, 2013
1 parent caac545 commit 010fe2a
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 8 deletions.
83 changes: 83 additions & 0 deletions mailit.features.field.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -3652,6 +3734,7 @@ field_name | field_label | help_text | default_value');
<li><a href="http://kb.mailchimp.com/article/best-practices-in-writing-email-subject-lines">MailChimp\'s guide to subjects</a></li>
</ul>');
t('Variables');
t('Weight');
t('When a reader hits reply, this address will be used. ');
t('facebook');
t('flickr');
Expand Down
3 changes: 2 additions & 1 deletion mailit.info
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mailit.strongarm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
9 changes: 4 additions & 5 deletions mailit.views_default.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 010fe2a

Please sign in to comment.