PATH:
home
/
letacommog
/
crmleta
/
modules
/
ITS4YouResetCPPassword
<?php /********************************************************************************* * The content of this file is subject to the Reset CP Password 4 You license. * ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. ********************************************************************************/ require_once 'modules/Webforms/model/WebformsModel.php'; require_once 'include/Webservices/DescribeObject.php'; class ITS4YouResetCPPassword { // Cache to speed up describe information store protected static $moduleDescribeCache = array(); function __construct() { global $log, $currentModule; $this->db = PearDatabase::getInstance(); $this->log = $log; } function vtlib_handler($moduleName, $eventType) { require_once('include/utils/utils.php'); if($eventType == 'module.postinstall') { // Mark the module as Standard module // Mark the module as Standard module include_once('vtlib/Vtiger/Module.php'); $moduleInstance = Vtiger_Module::getInstance('Contacts'); $moduleInstance->addLink('DETAILVIEWBASIC', 'Reset CP Password','javascript:ITS4YouResetCPPassword_Detail_Js.ResetPassword($RECORD$)'); } else if($eventType == 'module.disabled') { // TODO Handle actions when this module is disabled. } else if($eventType == 'module.enabled') { // TODO Handle actions when this module is enabled. } else if($eventType == 'module.preuninstall') { // TODO Handle actions when this module is about to be deleted. } else if($eventType == 'module.preupdate') { // TODO Handle actions before this module is updated. } else if($eventType == 'module.postupdate') { // TODO Handle actions after this module is updated. } } }
[+]
..
[-] ITS4YouResetCPPassword.js
[edit]
[+]
actions
[-] ITS4YouResetCPPassword.php
[edit]