workflow_extensions.install in Workflow Extensions 6
Same filename and directory in other branches
Install and uninstall hooks for Workflow Extensions module.
File
workflow_extensions.installView source
<?php
/**
* @file
* Install and uninstall hooks for Workflow Extensions module.
*/
/**
* Implementation of hook_install().
*/
function workflow_extensions_install() {
// Patch by galaxor: [#1346078]
// Weight should be a higher weight than Noderelationships module. That way,
// it can grab the submit handlers when dealing with a form in a modalframe.
// If we don't get that handler, the modalframe won't close.
db_query("UPDATE {system} SET weight=2 WHERE name='workflow_extensions'");
}
/**
* Implementation of hook_uninstall().
*/
function workflow_extensions_uninstall() {
// Delete all workflow_extensions_* variables at once
db_query("DELETE FROM {variable} WHERE name LIKE 'workflow_extensions_%%'");
}
/**
* Implementation of hook_update_N().
* See comment at workflow_extensions_install().
*/
function workflow_extensions_update_6108() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight=2 WHERE name='workflow_extensions'");
return $ret;
}
Functions
Name![]() |
Description |
---|---|
workflow_extensions_install | Implementation of hook_install(). |
workflow_extensions_uninstall | Implementation of hook_uninstall(). |
workflow_extensions_update_6108 | Implementation of hook_update_N(). See comment at workflow_extensions_install(). |