--- Desktop/worklog/worklog.install 2006-08-30 08:33:28.000000000 -0500 +++ /var/www/localhost/htdocs/drupal/modules/worklog/worklog.install 2006-08-30 08:21:32.000000000 -0500 @@ -27,7 +27,18 @@ closed int(1) unsigned default '0', PRIMARY KEY (nid) ) /*!40100 DEFAULT CHARACTER SET utf8 */;"); - + if(module_exist('profile')) { + $result[] = db_query("INSERT INTO {profile_fields} VALUES (3, 'Address', 'profile_address1', '', 'Contact Info', '', 'textfield', -4, 1, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (2, 'City', 'profile_city', '', 'Contact Info', '', 'textfield', -3, 1, 1, 4, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (4, 'Address Extended', 'profile_address2', 'Anything else that needs to go in the address', 'Contact Info', '', 'textfield', -4, 0, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (5, 'State/Province', 'profile_state', 'State or Province', 'Contact Info', '', 'textfield', -3, 1, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (6, 'Zip Code', 'profile_zipcode', '', 'Contact Info', '', 'textfield', -3, 1, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (7, 'Country', 'profile_country', '', 'Contact Info', '', 'textfield', -3, 1, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (8, 'Country Code', 'profile_countrycode', '', 'Contact Info', '', 'textfield', -3, 0, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (9, 'Phone #', 'profile_phone', '', 'Contact Info', '', 'textfield', -3, 1, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (10, 'Alternate phone #', 'profile_phone1', '', 'Contact Info', '', 'textfield', -2, 0, 1, 1, 0, '');"); + $result[] = db_query("INSERT INTO {profile_fields} VALUES (11, 'Company Name', 'profile_company', '', 'Contact Info', '', 'textfield', -5, 0, 1, 1, 0, '');"); + } if (count($result) == count(array_filter($result))) { drupal_set_message(t('The worklog module has successfully added tables to the database.')); } else {