source: sipes/modules_contrib/auto_nodetitle/auto_nodetitle.install @ 6e81fb4

stableversion-3.0
Last change on this file since 6e81fb4 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100755
File size: 722 octetos
Línea 
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 */
7function auto_nodetitle_install() {
8  db_query("UPDATE {system} SET weight = 5 WHERE name = 'auto_nodetitle'");
9}
10
11/**
12 * Implementation of hook_uninstall().
13 */
14function 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 */
25function auto_nodetitle_update_1() {
26  $ret = array();
27  $ret[] = update_sql("UPDATE {system} SET weight = 5 WHERE name = 'auto_nodetitle'");
28  return $ret;
29}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.