|
Drupal example source code file (rules_forms.install)
The rules_forms.install Drupal example source code
<?php
// $Id: rules_forms.install,v 1.1.2.2 2010/06/10 12:56:38 klausi Exp $
/**
* @file
* Rules Forms - Installation file.
*/
/**
* Implementation of hook_install().
*/
function rules_forms_install() {
// Set the modules' weight to 20, because we want it to be the last one using
// hook_form_alter().
db_query("UPDATE {system} SET weight = 20 WHERE name = 'rules_forms'");
}
/**
* Update the module's weight to 20.
*/
function rules_forms_update_6001() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = 20 WHERE name = 'rules_forms'");
return $ret;
}
Other Drupal examples (source code examples)Here is a short list of links related to this Drupal rules_forms.install source code file: |
"Drupal" is a registered trademark of Dries Buytaert.
our drupal tutorials and examples
Sponsored by:
Mat-Su Valley Programming (Wasilla and Palmer, Alaska)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.