debug("Entering __construct() method...."); $this->exposeMethod('clearData'); $log->debug("Exiting __construct() method...."); } /** * Function to check permission for the User */ function checkPermission(Vtiger_Request $request) { global $log; $log->debug("Entering __construct() method...."); $log->debug("Exiting __construct() method...."); return true; } /** * Function to clear all module builder data stored in session */ public function clearData(Vtiger_Request $request) { global $log; $log->debug("Entering clearData(request array()) method...."); $_SESSION['tks_module_builder'] = array(); $log->debug("Exiting clearData(request array()) method...."); header("Location: index.php?module=".$request->getModule()."&view=MBindex&parent=Tools"); exit(); } }