| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: auto_nodetitle.install,v 1.2.2.1 2008/12/30 20:28:26 fago Exp $ 3 4 /** 5 * Implementation of hook_install(). 6 */ 7 function auto_nodetitle_install() { 8 db_query("UPDATE {system} SET weight = 5 WHERE name = 'auto_nodetitle'"); 9 } 10 11 /** 12 * Implementation of hook_uninstall(). 13 */ 14 function auto_nodetitle_uninstall() { 15 foreach (node_get_types('names') as $type => $type_name) { 16 variable_del('ant_'. $type); 17 variable_del('ant_pattern_'. $type); 18 variable_del('ant_php_'. $type); 19 } 20 } 21 22 /** 23 * make sure hooks are invoked after cck main hooks 24 */ 25 function auto_nodetitle_update_1() { 26 $ret = array(); 27 $ret[] = update_sql("UPDATE {system} SET weight = 5 WHERE name = 'auto_nodetitle'"); 28 return $ret; 29 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |