Drupal: Modified boinc_standard Feature to include new bbcode parameter.

Set defaults of bbcode parameters to rewrite email addresses, and not encode them.
This commit is contained in:
Shawn Kwang 2019-02-28 14:28:39 -06:00
parent 2858e3f98d
commit 7e5d228786
3 changed files with 21 additions and 3 deletions

View File

@ -179,6 +179,8 @@ features[variable][] = "bbcode_make_links_4"
features[variable][] = "bbcode_make_links_6"
features[variable][] = "bbcode_paragraph_breaks_4"
features[variable][] = "bbcode_paragraph_breaks_6"
features[variable][] = "bbcode_rewrite_email_4"
features[variable][] = "bbcode_rewrite_email_6"
features[variable][] = "boinctranslate_filter_debug_4"
features[variable][] = "boinctranslate_filter_nodetypes"
features[variable][] = "comment_anonymous_page"

View File

@ -111,7 +111,9 @@ function boinc_standard_input_formats() {
// Spam link deterrent
'bbcode_filter_nofollow' => '0',
// Email address encoding
'bbcode_encode_mailto' => '1',
'bbcode_encode_mailto' => '0',
// Email address rewrite
'bbcode_rewrite_email' => '1',
// Smart paragraph and line breaks
'bbcode_paragraph_breaks' => '2',
// Print debugging info

View File

@ -31,14 +31,14 @@ function boinc_standard_strongarm() {
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'bbcode_encode_mailto_4';
$strongarm->value = '1';
$strongarm->value = '0';
$export['bbcode_encode_mailto_4'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'bbcode_encode_mailto_6';
$strongarm->value = '1';
$strongarm->value = '0';
$export['bbcode_encode_mailto_6'] = $strongarm;
$strongarm = new stdClass;
@ -83,6 +83,20 @@ function boinc_standard_strongarm() {
$strongarm->value = '2';
$export['bbcode_paragraph_breaks_6'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'bbcode_rewrite_email_4';
$strongarm->value = '1';
$export['bbcode_rewrite_email_4'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'bbcode_rewrite_email_6';
$strongarm->value = '1';
$export['bbcode_rewrite_email_6'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;