Skip to content

Commit

Permalink
set uc_attribute_files_cart_filepath and uc_attribute_files_order_fil…
Browse files Browse the repository at this point in the history
…epath to sensible defaults when installing the module
  • Loading branch information
Drupalfarms committed May 14, 2011
1 parent f96c41b commit 02f5601
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions uc_attribute_files.install
Expand Up @@ -9,19 +9,23 @@
/**
* Implemenation of hook_schema()
*//*
function uc_attribute_schema() {
return $schema;
function uc_attribute_files_schema() {
return $schema;
}

/**
* Implmentation of hook_install().
*//*
function uc_attribute_install() {
*/
function uc_attribute_files_install() {
variable_set('uc_attribute_files_cart_filepath', file_directory_path() . '/cart');
variable_set('uc_attribute_files_order_filepath', file_directory_path() . '/orders');
}

/**
* Implementation of hook_uninstall().
*//*
function uc_attribute_uninstall() {
*/
function uc_attribute_files_uninstall() {
variable_del('uc_attribute_files_cart_filepath');
variable_del('uc_attribute_files_order_filepath');
}
//*/

0 comments on commit 02f5601

Please sign in to comment.