function smarty_modifier_addonitemid($token) { $api = new TikiAddons_Api(); return $api->getItemIdFromToken($token); }