Closed (fixed)
Project:
Forward
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2010 at 12:25 UTC
Updated:
13 Sep 2010 at 21:20 UTC
Different places in the code supply different default values to variable_get($variable_name, $default_value).
E.g.:
'title' => variable_get('forward_epostcard_title', 'Send an e-Postcard'),
...
'#default_value' => variable_get('forward_epostcard_title', t('Send an e-Postcard')),
drupal_set_title(variable_get('forward_page_title', 'Forward this page'));
...
'attributes' => array('title' => variable_get('forward_page_title', t('Forward this page to a friend')), 'class' => 'forward-page'),
Likewise for forward_page_title, forward_thankyou and site_name. The latter should default to "Drupal".
Comments
Comment #1
seanrRegarding the first one, hook_menu doesn't need the t() function - the menu system does it automatically later on. The other one and the Drupal vs drupal ones are fixed. The forward_thankyou value does match in both places where it appears.
Comment #2
c960657 commentedRegarding forward_page_title: These two occurrences differ:
Regarding forward_thankyou: These two occurrences differ (there is one or two spaces before “We appreciate”):
BTW, HEAD contains a few stray dsm() calls.
Comment #3
seanrBoth of those are fixed now. I've commented out the dsm calls, but it should be noted that the D7 port of this is VERY much a work in progress. Email formatting is currently quite broken, for example. ;-)
Comment #4
seanrFound a few more, fixed and committed.