diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-06-29 18:06:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-06-29 18:06:51 +0000 |
commit | 2348e7de6f9714496316ee42d5598efeb0faaee3 (patch) | |
tree | faf22908035129ddd942071cace661b068e1f7d6 /modules/actions/actions.schema | |
parent | 8dd8b0c22373106181d40e1bfa8af9c47dd127cb (diff) | |
download | brdo-2348e7de6f9714496316ee42d5598efeb0faaee3.tar.gz brdo-2348e7de6f9714496316ee42d5598efeb0faaee3.tar.bz2 |
- Patch #148410 by jvandyk: added rewrite of the actions module!
This is a very important patch, but one that is merely an enabler.
Hopefully we'll see more people submitting "action patches" in the
near future.
Thanks for the hard work and persistence, John. *If* you decide
to update the Drupal Pro Development book to Drupal 6, make sure
to add a chapter on actions. ;)
Diffstat (limited to 'modules/actions/actions.schema')
-rw-r--r-- | modules/actions/actions.schema | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/actions/actions.schema b/modules/actions/actions.schema new file mode 100644 index 000000000..2e2ca9b28 --- /dev/null +++ b/modules/actions/actions.schema @@ -0,0 +1,26 @@ +<?php +// $Id$ + +function actions_schema() { + $schema['actions'] = array( + 'fields' => array( + 'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'), + 'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), + 'callback' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'parameters' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big', 'default' => ''), + 'description' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'), + ), + 'primary key' => array('aid'), + ); + $schema['actions_assignments'] = array( + 'fields' => array( + 'hook' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), + 'op' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), + 'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), + ), + 'index keys' => array( + 'hook_op' => array('hook', 'op')) + ); + return $schema; +} |