pierre@0: . pierre@0: */ pierre@0: pierre@0: /** pierre@0: * Implementation of hook_schema(). pierre@0: */ pierre@0: function ad_external_schema() { pierre@0: $schema['ad_external'] = array( pierre@0: 'description' => 'The ad_external table stores source URLs for external ads.', pierre@0: 'fields' => array( pierre@0: 'aid' => array( pierre@0: 'type' => 'int', pierre@0: 'unsigned' => TRUE, pierre@0: 'not null' => TRUE, pierre@0: 'default' => 0, pierre@0: ), pierre@0: 'url' => array( pierre@0: 'type' => 'varchar', pierre@0: 'length' => '255', pierre@0: 'not null' => TRUE, pierre@0: 'default' => '', pierre@0: ) pierre@0: ), pierre@0: 'primary key' => array('aid'), pierre@0: ); pierre@0: pierre@0: return $schema; pierre@0: } pierre@0: pierre@0: /** pierre@0: * ad_external module installation. pierre@0: */ pierre@0: function ad_external_install() { pierre@0: drupal_install_schema('ad_external'); pierre@0: } pierre@0: pierre@0: /** pierre@0: * Allow complete uninstallation of the ad_external module. pierre@0: */ pierre@0: function ad_external() { pierre@0: drupal_uninstall_schema('ad_external'); pierre@0: }