Hi Adam,
thanks for your really fine help. Can I ask you an additional favour? I'm a complete youngster in module development.
Can you have a brief overlook on how I did this and if it is correct?:
CreateDateInstall.php:
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Custom_CreateDateInstall extends ModuleInstall {
public function install() { // Here you can place installation process for the module
Utils_RecordBrowserCommon::register_processing_callback('company', array('Custom_CreateDateCommon', 'create_date'));
return true; // Return true on success and false on failure
}
public function uninstall() { // Here you can place uninstallation process for the module
return true; // Return true on success and false on failure
}
public function info() { // Returns basic information about the module which will be available in the epesi Main Setup
return array( 'Author'=>'Johannes Heimhilcher');
}
public function simple_setup() { // Indicates if this module should be visible on the module list in Main Setup's simple view
return array('package' => __('CreateDate'), 'version'=>'0.1');
// return true;
}
public function requires($v) { // Returns list of modules and their versions, that are required to run this module
return array();
}
public function version() { // Return version name of the module
return array('0.1');
}
}
?>
CreateDateCommon_0.php:
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Custom_CreateDateCommon extends ModuleCommon {
public static function create_date($data, $mode) {
if ($mode == 'add') {
$data['creation date'] = time();
}
return $data;
}
}
?>
When everything's fine, I will upload it to modules/Custom/ - directory. I hope, I named all the files and variables correctly.
Thanks again very much,
Greetz, Hannes