Server : Apache System : Linux copper.netcy.com 2.6.32-754.27.1.el6.centos.plus.x86_64 #1 SMP Thu Jan 30 13:54:25 UTC 2020 x86_64 User : montcaro ( 581) PHP Version : 7.4.28 Disable Function : NONE Directory : /home/montcaro/public_html/modules/simpletest/tests/ |
<?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); }