Done !
| Server IP : 194.181.228.65 / Your IP : 216.73.216.25 Web Server : LiteSpeed System : Linux wn13.webd.pl 5.14.0-687.46.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 11 09:03:19 EDT 2026 x86_64 User : prusit ( 133039) PHP Version : 5.6.40 Disable Function : exec, system, shell_exec, passthru, proc_open, proc_close, popen MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/prusit/public_html/djriki/modules/simpletest/tests/ |
Upload File : |
<?php
/**
* @file
* Install, update and uninstall functions for the module_test module.
*/
/**
* Implements hook_schema().
*/
function module_test_schema() {
$schema['module_test'] = array(
'description' => 'Dummy table to test the behavior of hook_schema() during module installation.',
'fields' => array(
'data' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'An example data column for the module.',
),
),
);
return $schema;
}
/**
* Implements hook_install().
*/
function module_test_install() {
$record = array('data' => 'Data inserted in hook_install()');
drupal_write_record('module_test', $record);
}
/**
* Implements hook_enable().
*/
function module_test_enable() {
$record = array('data' => 'Data inserted in hook_enable()');
drupal_write_record('module_test', $record);
}