. /** * Definition of log events * * NOTE: this is an example how to insert log event during installation/update. * It is not really essential to know about it, but these logs were created as example * in the previous 1.9 NEWMODULE. * * @package mod * @subpackage sqlbox * @copyright 2012 Jan Klemkow , Benjamin Franzke * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); global $DB; $logs = array( array('module'=>'sqlbox', 'action'=>'add', 'mtable'=>'sqlbox', 'field'=>'name'), array('module'=>'sqlbox', 'action'=>'update', 'mtable'=>'sqlbox', 'field'=>'name'), array('module'=>'sqlbox', 'action'=>'view', 'mtable'=>'sqlbox', 'field'=>'name'), array('module'=>'sqlbox', 'action'=>'view all', 'mtable'=>'sqlbox', 'field'=>'name') );