function slideaway_currency_tokens($type,$tokens,array$data=array(),array$options=array()){$replacements=array();if($type=='node'&&!empty($data['node'])){$node=$data['node'];foreach($tokensas$name=>$original){switch($name){case'title_first_letter':$replacements[$original]=substr($node->title,0,1);// get first letter of the title here break;}}}return$replacements;}

Don't forget to flush the cache to update token register.
That's it: go to the token list and it should be there!