/[drupal]/contributions/modules/workflow_named_transitions/workflow_named_transitions.install
ViewVC logotype

Diff of /contributions/modules/workflow_named_transitions/workflow_named_transitions.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Tue Dec 23 06:11:02 2008 UTC revision 1.3, Wed Dec 24 05:34:42 2008 UTC
# Line 1  Line 1 
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
# Line 39  function workflow_named_transitions_sche Line 39  function workflow_named_transitions_sche
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);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2