Jacob Redding
public php v1 · immutablefunction userpoints_translation() { static $trans; if (!isset($trans)) { $trans = array( '!Points' => variable_get(USERPOINTS_TRANS_UCPOINTS, 'Points'), '!points' => variable_get(USERPOINTS_TRANS_LCPOINTS, 'points'), '!point' => variable_get(USERPOINTS_TRANS_LCPOINT, 'point'), '!Uncategorized' => variable_get(USERPOINTS_TRANS_UNCAT, 'Uncategorized'), ); } return $trans;}