You are here

function forward_update_2 in Forward 6

Same name and namespace in other branches
  1. 5 forward.install \forward_update_2()
  2. 7 forward.install \forward_update_2()

Update variable strings

File

./forward.install, line 91

Code

function forward_update_2() {

  //variable strings changed
  variable_set('forward_emailsubject', str_replace(array(
    '%name',
    '%site',
  ), array(
    '!name',
    '!site',
  ), variable_get('forward_emailsubject', '!name has forwarded a page to you from !site')));
  variable_set('forward_emailmessage', str_replace(array(
    '%name',
    '%site',
  ), array(
    '!name',
    '!site',
  ), variable_get('forward_emailmessage', '!name thought you would like to see this page from the !site web site.')));
  variable_set('forward_postcardsubject', str_replace(array(
    '%name',
    '%site',
  ), array(
    '!name',
    '!site',
  ), variable_get('forward_postcardsubject', '!name has sent you an e-postcard from !site')));
  variable_set('forward_postcardmessage', str_replace(array(
    '%name',
    '%site',
  ), array(
    '!name',
    '!site',
  ), variable_get('forward_postcardmessage', '!name has sent you an e-postcard from the !site web site.  Please take a moment to visit our web site.')));
  return array();
}