feel free to keep it strictly simple...

get_leptoken

Corefunction to »get« the submitted leptoken-hash for processing e.g inside a module.
Simple return the actual token(-hash).

Since Lepton-CMS 2.3.0

 

if(!function_exists("get_leptoken")){
require_once( LEPTON_PATH."/framework/functions/function.get_leptoken.php");
}
$leptoken = get_leptoken();

Since LEPTON 2.4 there is also a static function available:

LEPTON_tools::get_leptoken() ;

last edit: 24. Mar 2017 CET 15:28:47