diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-31 02:18:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-31 02:18:22 +0000 |
commit | e2a6a3ed61a405bcda47cf997b06c3cb1cb1c0e0 (patch) | |
tree | a1800065aa98d7b480259839b370dbe4b758ce4e /modules/system/system.install | |
parent | e6a57469694fea2d576efc9c1d8b46fb6c1cb6c3 (diff) | |
download | brdo-e2a6a3ed61a405bcda47cf997b06c3cb1cb1c0e0.tar.gz brdo-e2a6a3ed61a405bcda47cf997b06c3cb1cb1c0e0.tar.bz2 |
- Patch #298600 by chx, justinrandell, Damien, et al: make module_implements work regardless of bootstrap phase.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index dbd6c8f29..f84bc570c 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1092,8 +1092,31 @@ function system_schema() { 'length' => 255, 'not null' => TRUE, ), + 'module' => array( + 'description' => t('Name of the module the file belongs to.'), + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => '' + ), + 'suffix' => array( + 'description' => t("The part of the function name after the module, which is the hook this function implements, if any."), + 'type' => 'varchar', + 'length' => 68, + 'not null' => TRUE, + 'default' => '' + ), + 'weight' => array( + 'description' => t("The order in which this module's hooks should be invoked relative to other modules. Equal-weighted modules are ordered by name."), + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + ), ), 'primary key' => array('name', 'type'), + 'indexes' => array( + 'hook' => array('type', 'suffix', 'weight', 'module'), + ), ); $schema['registry_file'] = array( @@ -2931,8 +2954,14 @@ function system_update_7006() { 'name' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), 'type' => array('type' => 'varchar', 'length' => 9, 'not null' => TRUE, 'default' => ''), 'filename' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'module' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'suffix' => array('type' => 'varchar', 'length' => 69, 'not null' => TRUE, 'default' => ''), + 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), ), 'primary key' => array('name', 'type'), + 'indexes' => array( + 'hook' => array('type', 'suffix', 'weight', 'module'), + ), ); $schema['registry_file'] = array( 'fields' => array( |