You are here

function basic_cart_get_fields in Basic cart 7.3

Returns the fields we need to create.

Return value

mixed Key / Value pair of field name => field type.

4 calls to basic_cart_get_fields()
basic_cart_admin_content_type_submit in ./basic_cart.admin.inc
Callback submit function for the settings page.
basic_cart_install in ./basic_cart.install
Implements hook_install().
basic_cart_uninstall in ./basic_cart.install
Implements hook_uninstall().
basic_cart_update_7202 in ./basic_cart.install
Adding the latest fields, in case they aren't already there.

File

./basic_cart.module, line 455

Code

function basic_cart_get_fields() {
  return array(
    'price' => array(
      'type' => 'number_decimal',
      'title' => t('Price'),
      'description' => t('Please enter this item\'s price.'),
    ),
    'add_to_cart' => array(
      'type' => 'text',
      'title' => 'Add to cart',
      'description' => '',
    ),
  );
}