[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/nodeformsettings/ -> cckformsettings.install (source)

   1  <?php
   2  // $Id$
   3  
   4  /**
   5   * Implementation of hook_install().
   6   * Display a welcome message
   7   */
   8  function cckformsettings_install() {
   9    drupal_set_message(t('CCK Form Settings is now installed. You can now customize your text area fields.'));
  10  }
  11  
  12  /**
  13   * Implementation of hook_uninstall().
  14   * Remove the variables this module created.
  15   */
  16  function cckformsettings_uninstall() {
  17    // remove all variables we created
  18    $variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'cckformsettings%%'");
  19    while ($variable = db_fetch_object($variables)) {
  20      variable_del($variable->name);
  21    }
  22    update_sql("DELETE FROM {system} WHERE name like '%cckformsettings'");
  23  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7