home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (rules_forms.install)

This example Drupal source code file (rules_forms.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

20, array, database, function, name, php, ret, rules_forms, set, sql, system, update, weight, where

The rules_forms.install Drupal example source code

// $Id: rules_forms.install,v 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:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.