[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/advanced_help/ -> advanced_help.install (source)

   1  <?php
   2  // $Id: advanced_help.install,v 1.3 2008/04/19 16:45:57 merlinofchaos Exp $
   3  /**
   4   * @file advanced_help.install
   5   * Contains install and update functions for advanced_help.
   6   */
   7  
   8  function advanced_help_install() {
   9    drupal_set_message('Installing advanced_help.');
  10    drupal_install_schema('advanced_help');
  11  }
  12  
  13  function advanced_help_uninstall() {
  14    drupal_uninstall_schema('advanced_help');
  15    variable_del('advanced_help_last_cron');
  16  }
  17  
  18  /**
  19   * advanced_help's initial schema.
  20   */
  21  function advanced_help_schema() {
  22    $schema['advanced_help_index'] = array(
  23      'description' => t('Stores search index correlations for advanced help topics.'),
  24      'fields' => array(
  25        'sid' => array(
  26          'type' => 'serial',
  27          'unsigned' => TRUE,
  28          'not null' => TRUE,
  29          'description' => t('The primary key to give to the search engine for this topic.'),
  30          'no export' => TRUE,
  31        ),
  32        'module' => array(
  33          'type' => 'varchar',
  34          'length' => '255',
  35          'default' => '',
  36          'not null' => TRUE,
  37          'description' => t('The module that owns this topic.'),
  38        ),
  39        'topic' => array(
  40          'type' => 'varchar',
  41          'length' => '255',
  42          'default' => '',
  43          'not null' => TRUE,
  44          'description' => t('The topic id.'),
  45        ),
  46        'language' => array(
  47          'type' => 'varchar',
  48          'length' => 12,
  49          'not null' => TRUE,
  50          'default' => '',
  51          'description' => t('The language this search index relates to.'),
  52        ),
  53      ),
  54      'primary key' => array('sid'),
  55      'indexes' => array('language' => array('language')),
  56    );
  57  
  58    return $schema;
  59  }


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