Ejemplo n.º 1
0
 /**
  * Replace welcome/confirmation tokens
  * 
  * @param string $str           The string with tokens to be replaced
  * @param string $group         The name of the group being subscribed
  * @param boolean $html         Replace tokens with html or plain text
  * @return string               The processed string
  * @access public
  * @static
  */
 function &replaceWelcomeTokens($str, $group, $html)
 {
     if (CRM_Utils_Token::token_match('welcome', 'group', $str)) {
         CRM_Utils_Token::token_replace('welcome', 'group', $group, $str);
     }
     return $str;
 }