You are here

function birthdays_update_6000 in Birthdays 6

Same name and namespace in other branches
  1. 7 birthdays.install \birthdays_update_6000()

The placeholder @name in the user birthday message has been replaced by !username, because we now can use user_mail_tokens().

File

./birthdays.install, line 95
Installation file for the Birthdays module.

Code

function birthdays_update_6000() {
  $ret = array();
  $current = variable_get('birthdays_send_user_message', FALSE);
  if ($current !== FALSE) {
    variable_set('birthdays_send_user_message', strtr($current, array(
      '@name' => '!username',
    )));
    $ret[] = array(
      'success' => TRUE,
      'query' => 'Replaced @name with !username in user birthday e-mail.',
    );
  }
  return $ret;
}