| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: mollom_test.install,v 1.1.2.1 2010/02/05 21:02:33 dries Exp $ 3 4 /** 5 * @file 6 * Installation functionality for Mollom testing module. 7 */ 8 9 /** 10 * Implements hook_schema(). 11 */ 12 function mollom_test_schema() { 13 $schema['mollom_test'] = array( 14 'description' => 'Stores testing data for Mollom test form.', 15 'fields' => array( 16 'mid' => array('type' => 'serial', 'not null' => TRUE, 17 'description' => 'Primary key: Unique mollom_test entity ID.', 18 ), 19 'body' => array('type' => 'text', 'not null' => TRUE, 20 'description' => 'The body field of mollom_test_form().', 21 ), 22 ), 23 'primary key' => array('mid'), 24 ); 25 return $schema; 26 } 27 28 /** 29 * Implements hook_install(). 30 */ 31 function mollom_test_install() { 32 drupal_install_schema('mollom_test'); 33 } 34 35 /** 36 * Implements hook_uninstall(). 37 */ 38 function mollom_test_uninstall() { 39 drupal_uninstall_schema('mollom_test'); 40 } 41
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 |