| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id$ 3 4 /** 5 * Implementation of hook_install(). 6 * Display a welcome message 7 */ 8 function nodeformsettings_install() { 9 drupal_set_message(t('Node and Comments Form Settings is now installed. Customize your content types at <a href="@contenttypes">the content types settings page</a>.', 10 array( '@contenttypes' => url('admin/content/types') ) 11 )); 12 } 13 14 /** 15 * Implementation of hook_uninstall(). 16 * Remove the variables this module created. 17 */ 18 function nodeformsettings_uninstall() { 19 // remove all variables we created 20 $variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'nodeformsettings%%'"); 21 while ($variable = db_fetch_object($variables)) { 22 variable_del($variable->name); 23 } 24 update_sql("DELETE FROM {system} WHERE name like '%nodeformsettings'"); 25 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |