~keichee/+junk/ubercart

« back to all changes in this revision

Viewing changes to uc_order/uc_order.info.inc

  • Committer: Lyle Mantooth
  • Date: 2010-12-15 13:35:13 UTC
  • Revision ID: lyle@ubercart.org-20101215133513-7pzplhg9xm0dqfwf
#994114 by Island Usurper: Follow changes to hook_entity_property_info().

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
  return array(
13
13
    'uc_order_product' => array(
14
14
      'properties' => array(
15
 
        'order-product-id' => array(
 
15
        'order_product_id' => array(
16
16
          'type' => 'integer',
17
17
          'label' => t('Order product ID'),
18
18
          'description' => t('The unique ID for the purchased product.'),
19
19
        ),
20
 
        'order-id' => array(
 
20
        'order_id' => array(
21
21
          'type' => 'integer',
22
22
          'label' => t('Order ID'),
23
23
          'description' => t('The order ID that owns the product.'),
68
68
    ),
69
69
    'uc_order' => array(
70
70
      'properties' => array(
71
 
        'order-id' => array(
 
71
        'order_id' => array(
72
72
          'type' => 'integer',
73
73
          'label' => t('Order ID'),
74
74
          'description' => t('Primary key: the order ID.'),
91
91
          'setter permission' => 'edit orders',
92
92
          'clear' => array('uid'),
93
93
        ),
94
 
        'delivery-address' => array(
 
94
        'delivery_address' => array(
95
95
          'type' => 'struct',
96
96
          'label' => t('Delivery address'),
97
97
          'description' => t('The destination of the shipped products.'),
100
100
          'setter permission' => 'edit orders',
101
101
          'property info' => $address_info,
102
102
        ),
103
 
        'billing-address' => array(
 
103
        'billing_address' => array(
104
104
          'type' => 'struct',
105
105
          'label' => t('Billing address'),
106
106
          'description' => t('The destination of the bill and invoice.'),
109
109
          'setter permission' => 'edit orders',
110
110
          'property info' => $address_info,
111
111
        ),
112
 
        'order-status' => array(
 
112
        'order_status' => array(
113
113
          'type' => 'text',
114
114
          'label' => t('Order status'),
115
115
          'description' => t('The status of the order.'),
118
118
          'setter permission' => 'edit orders',
119
119
          'query callback' => 'entity_metadata_table_query',
120
120
        ),
121
 
        'order-total' => array(
 
121
        'order_total' => array(
122
122
          'type' => 'decimal',
123
123
          'label' => t('Order total'),
124
124
          'description' => t('The total amount due for the order.'),
125
125
          'getter callback' => 'uc_order_get_total',
126
126
          'query callback' => 'entity_metadata_table_query',
127
127
        ),
128
 
        'primary-email' => array(
 
128
        'primary_email' => array(
129
129
          'type' => 'text',
130
130
          'label' => t('Primary email'),
131
131
          'description' => t('The primary email address of the customer.'),
132
132
          'setter permission' => 'edit orders',
133
133
          'query callback' => 'entity_metadata_table_query',
134
134
        ),
135
 
        'payment-method' => array(
 
135
        'payment_method' => array(
136
136
          'type' => 'text',
137
137
          'label' => t('Payment method'),
138
138
          'description' => t('The method of payment.'),