/[drupal]/contributions/modules/audio/contrib/itunes/audio_itunes.install
ViewVC logotype

Diff of /contributions/modules/audio/contrib/itunes/audio_itunes.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by drewish, Sun May 25 17:21:27 2008 UTC revision 1.3 by drewish, Mon Nov 24 21:11:13 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: audio_itunes.install,v 1.1 2007/03/13 18:12:54 drewish Exp $  // $Id: audio_itunes.install,v 1.2 2008/05/25 17:21:27 drewish Exp $
3    
4  /**  /**
5   * Implementation of hook_install().   * Implementation of hook_install().
6   */   */
7  function audio_itunes_install() {  function audio_itunes_install() {
8    drupal_install_schema('audio_itunes');    drupal_install_schema('audio_itunes');
   _audio_add_default_perms();  
9  }  }
10    
11  /**  /**
# Line 20  function audio_itunes_uninstall() { Line 19  function audio_itunes_uninstall() {
19   * Implementation of hook_schema().   * Implementation of hook_schema().
20   */   */
21  function audio_itunes_schema() {  function audio_itunes_schema() {
   $schema['audio_itunes_channel'] = array(  
     'description' => t('Audio iTunes channel.'),  
     'fields' => array(  
       'view_id' => array(  
         'type' => 'int',  
         'size' => 'medium',  
         'not null' => 'true',  
         'default' => 0,  
       ),  
       'subtitle' => array(  
         'type' => 'varchar',  
         'length' => 255,  
         'not null' => 'true',  
         'default' => '',  
       ),  
       'summary' => array(  
         'type' => 'text',  
         'size' => 'medium',  
         'not null' => 'true',  
       ),  
       'author' => array(  
         'type' => 'varchar',  
         'length' => 255,  
         'not null' => 'true',  
         'default' => '',  
       ),  
       'copyright' => array(  
         'type' => 'varchar',  
         'length' => 255,  
         'not null' => 'true',  
         'default' => '',  
       ),  
       'owner_name' => array(  
         'type' => 'varchar',  
         'length' => 255,  
         'not null' => 'true',  
         'default' => '',  
       ),  
       'owner_email' => array(  
         'type' => 'varchar',  
         'length' => 255,  
         'not null' => 'true',  
         'default' => '',  
       ),  
       'image_url' => array(  
         'type' => 'varchar',  
         'length' => 255,  
         'not null' => 'true',  
         'default' => '',  
       ),  
       'block' => array(  
         'type' => 'int',  
         'size' => 'tiny',  
         'not null' => 'true',  
         'default' => 0,  
       ),  
       'explicit' => array(  
         'type' => 'int',  
         'size' => 'tiny',  
         'not null' => 'true',  
         'default' => 0,  
       ),  
     ),  
     'primary key' => array('view_id'),  
   );  
22    $schema['audio_itunes_item'] = array(    $schema['audio_itunes_item'] = array(
23      'description' => t('Audio iTunes item.'),      'description' => t('Audio iTunes item.'),
24      'fields' => array(      'fields' => array(
# Line 127  function audio_itunes_schema() { Line 61  function audio_itunes_schema() {
61      'primary key' => array('vid'),      'primary key' => array('vid'),
62    );    );
63    return $schema;    return $schema;
64    }
65    
66    /**
67     * Update to remove the unused {audio_itunes_channel} table.
68     */
69    // FIXME: Commented out until I can figure out some way to pass the data out
70    // to admins so they can copy/paste into their views.
71    function _audio_itunes_update_6000() {
72      $ret = array();
73    
74      db_drop_table($ret, 'audio_itunes_channel');
75    
76      return $ret;
77  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.3