| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id$ 3 // Affiliate module install file 4 5 /** 6 * Implementation of hook_install(). 7 */ 8 function affiliate_install() { 9 // Create tables. 10 drupal_install_schema('affiliate'); 11 watchdog("affiliate","Installed affiliate",$variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL); 12 13 } 14 15 16 /** 17 * Implementation of hook_uninstall(). 18 */ 19 function affiliate_uninstall() { 20 drupal_uninstall_schema('affiliate'); 21 watchdog("affiliate","Un-Installed affiliate",$variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL); 22 23 } 24 25 26 /** 27 * Implementation of hook_schema(). 28 */ 29 function affiliate_schema() { 30 $schema['affiliate'] = array( 31 'description' => t('Affiliate sign-up info and survey'), 32 'fields' => array( 33 'uid' => array( 34 'description' => t('User id of creator'), 35 'type' => 'int', 36 'unsigned' => TRUE, 37 'not null' => TRUE, 38 'default' => 0, 39 ), 40 'affiliate_application_status' => array( 41 'description' => t('Application status '), 42 'mysql_type' => 'set(\'pending\',\'approved\',\'inactive\')', 43 'type' => 'set', 44 'not null' => TRUE, 45 'default' => 'pending', 46 ), 47 'affiliate_name_value' => array( 48 'description' => t('Please enter the name of your broadcasting service.'), 49 'type' => 'varchar', 50 'length' => '100', 51 'not null' => FALSE, 52 ), 53 'affiliate_address_value' => array( 54 'description' => t('Please enter your mailing address (Unit, Street, City, Country, if applicable)'), 55 'type' => 'text', 56 'size' => 'big', 57 'not null' => FALSE, 58 ), 59 'affiliate_postalcode_value' => array( 60 'description' => t('Please enter your postal code (ZIP)'), 61 'type' => 'text', 62 'size' => 'big', 63 'not null' => FALSE, 64 ), 65 'affiliate_telephone_value' => array( 66 'description' => t('Please enter your telephone number: 999-999-9999'), 67 'type' => 'text', 68 'size' => 'big', 69 'not null' => FALSE, 70 ), 71 'affiliate_extension_value' => array( 72 'description' => t('Please enter your extension (if not direct-dial)'), 73 'type' => 'int', 74 'not null' => FALSE, 75 ), 76 'affiliate_fax_value' => array( 77 'description' => t('Please enter your fax number (if any)'), 78 'type' => 'text', 79 'size' => 'big', 80 'not null' => FALSE, 81 ), 82 'affiliate_url_value' => array( 83 'description' => t('Please enter your web-site URL (if any)'), 84 'type' => 'text', 85 'size' => 'big', 86 'not null' => FALSE, 87 ), 88 'affiliate_email_value' => array( 89 'description' => t('Please enter your e-mail address '), 90 'type' => 'text', 91 'size' => 'big', 92 'not null' => FALSE, 93 ), 94 'affiliate_contact_value' => array( 95 'description' => t('Please enter the name of the primary contact for your service.'), 96 'type' => 'text', 97 'size' => 'big', 98 'not null' => FALSE, 99 ), 100 'affiliate_contact_title_value' => array( 101 'description' => t('Please enter the title of the primary contact'), 102 'type' => 'text', 103 'size' => 'big', 104 'not null' => FALSE, 105 ), 106 'affiliate_type_value' => array( 107 'description' => t('Please select the item that best describes your service'), 108 'type' => 'text', 109 'size' => 'big', 110 'not null' => FALSE, 111 ), 112 'affiliate_accept_value' => array( 113 'description' => t('Check to accept the conditions stated in the Release and Clearance above.'), 114 'type' => 'text', 115 'size' => 'big', 116 'not null' => FALSE, 117 ), 118 'affiliate_survey_total_users_value' => array( 119 'description' => t('How many users do you serve?'), 120 'type' => 'int', 121 'not null' => FALSE, 122 ), 123 'affiliate_survey_indiv_value' => array( 124 'description' => t('How many individuals?'), 125 'type' => 'int', 126 'not null' => FALSE, 127 ), 128 ), 129 'primary key' => array('uid'), 130 ); 131 return $schema; 132 }
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 |