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

Drupal example source code file (update_test_2.install)

This example Drupal source code file (update_test_2.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

7001, array, dependencies, function, php, return, update_test_1, update_test_2_update_7000, update_test_2_update_7001, update_test_2_update_7002, update_test_2_update_dependencies, update_test_3

The update_test_2.install Drupal example source code

<?php
// $Id: update_test_2.install,v 1.2 2010/04/28 05:28:22 webchick Exp $

/**
 * @file
 * Install, update and uninstall functions for the update_test_2 module.
 */

/**
 * Implements hook_update_dependencies().
 *
 * @see update_test_1_update_dependencies()
 * @see update_test_3_update_dependencies()
 */
function update_test_2_update_dependencies() {
  // Combined with update_test_3_update_dependencies(), we are declaring here
  // that these two modules run updates in the following order:
  // 1. update_test_2_update_7000()
  // 2. update_test_3_update_7000()
  // 3. update_test_2_update_7001()
  // 4. update_test_2_update_7002()
  $dependencies['update_test_2'][7001] = array(
    'update_test_3' => 7000,
  );

  // These are coordinated with the corresponding dependencies declared in
  // update_test_1_update_dependencies().
  $dependencies['system'][7000] = array(
    'update_test_2' => 7001,
  );
  $dependencies['system'][7001] = array(
    'update_test_1' => 7001,
  );

  return $dependencies;
}

/**
 * Dummy update_test_2 update 7000.
 */
function update_test_2_update_7000() {
}

/**
 * Dummy update_test_2 update 7001.
 */
function update_test_2_update_7001() {
}

/**
 * Dummy update_test_2 update 7002.
 */
function update_test_2_update_7002() {
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal update_test_2.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.