| 1 |
<?php |
<?php |
| 2 |
// $Id: workflow_named_transitions.install,v 1.1 2008/09/08 15:31:51 deekayen Exp $ |
// $Id: workflow_named_transitions.install,v 1.2 2008/12/23 06:11:02 deekayen Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 39 |
* the workflow module to make sure this module's form alter hook executes |
* the workflow module to make sure this module's form alter hook executes |
| 40 |
* after the one in the workflow module. |
* after the one in the workflow module. |
| 41 |
*/ |
*/ |
| 42 |
function workflow_named_transitions_install($form_id, &$form) { |
function workflow_named_transitions_install() { |
| 43 |
drupal_install_schema('workflow_named_transitions'); |
drupal_install_schema('workflow_named_transitions'); |
| 44 |
$workflow_weight = db_result(db_query_range("SELECT weight FROM {system} WHERE name = 'workflow'", 0, 1)); |
$workflow_weight = db_result(db_query_range("SELECT weight FROM {system} WHERE name = 'workflow'", 0, 1)); |
| 45 |
db_query("UPDATE {system} SET weight = %d + 1 WHERE name = 'workflow_named_transitions'", $workflow_weight); |
db_query("UPDATE {system} SET weight = %d + 1 WHERE name = 'workflow_named_transitions'", $workflow_weight); |