system_module.install in Util 6.3
Same filename and directory in other branches
Customize System Modules fieldsets
File
system_module.installView source
<?php
/**
* @file
* Customize System Modules fieldsets
*/
function system_module_install() {
drupal_install_schema('system_module');
}
function system_module_uninstall() {
drupal_uninstall_schema('system_module');
variable_del('system_module_show_internal_names');
variable_del('system_module_collapse_all');
}
function system_module_schema() {
// This is not used very much yet.
// Settings are still saved in user.data field.
// In next update this module will move away from using user.data and instead use
// its own configuration table
$schema['system_module_users'] = array(
'description' => t('Tracks users of this module to enable proper cleanup when module is disabled'),
'fields' => array(
'uid' => array(
'description' => t('User\'s ID'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'data' => array(
'description' => t('Stores serialized array informing of the kind of customizations made by the user'),
'type' => 'text',
'size' => 'normal',
'not null' => FALSE,
),
),
'primary key' => array(
'uid',
),
);
return $schema;
}
Functions
Name![]() |
Description |
---|---|
system_module_install | @file Customize System Modules fieldsets |
system_module_schema | |
system_module_uninstall |