Commit 124bac27 authored by makangus's avatar makangus Committed by bobbyaldol

hook_enable moved to .install

parent 5eaa89ff
<?php
/**
* @file order_example.install
*/
/**
* Implements hook_enable().
*
* Here we'll just use the commerce_order function to define a non-default
* order type. If we wanted different default fields on it, we could copy
* and alter commerce_order_configure_order_type().
*
* This order type (bundle) is not exposed on the current commerce admin pages
* however.
*/
function order_example_enable() {
commerce_order_configure_order_type('order_example_order_type');
}
......@@ -228,20 +228,6 @@ function order_example_add_cart_submit($form, &$form_state) {
commerce_cart_product_add_by_id($form_state['values']['addcart_product']);
}
/**
* Implements hook_enable().
*
* Here we'll just use the commerce_order function to define a non-default
* order type. If we wanted different default fields on it, we could copy
* and alter commerce_order_configure_order_type().
*
* This order type (bundle) is not exposed on the current commerce admin pages
* however.
*/
function order_example_enable() {
commerce_order_configure_order_type('order_example_order_type');
}
/**
* Implements hook_modules_enabled().
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment