function commerce_addressbook_update_7200 in Commerce Addressbook 7.3
Same name and namespace in other branches
- 7.2 commerce_addressbook.install \commerce_addressbook_update_7200()
Creates the defaults table and removes any saved profile fields.
File
- ./
commerce_addressbook.install, line 57
Code
function commerce_addressbook_update_7200() {
// Only run this update if the defaults table does not exist.
if (!db_table_exists('commerce_addressbook_defaults')) {
db_create_table('commerce_addressbook_defaults', drupal_get_schema_unprocessed('commerce_addressbook', 'commerce_addressbook_defaults'));
// Delete any saved profile fields.
commerce_delete_fields('commerce_addressbook_saved_profiles');
return t('Created the commerce_addressbook_defaults table and deleted all saved profile fields.');
}
}