<?php

/**
 * @file
 * Hooks provided by the Variable module.
 */

/**
 * Implements hook_variable_info().
 */
function uc_store_variable_info($options) {
  $variables['uc_store_name'] = array(
    'title' => t('Store name'),
    'description' => t('Store name.'),
    'group' => 'uc_store',
  );

  $variables['uc_field_first_name'] = array(
    'title' => t('First name'),
    'description' => t('Customer first name, used in store orders (billing or shipping information).'),
    'group' => 'uc_store',
  );

  $variables['uc_field_last_name'] = array(
    'title' => t('Last name'),
    'description' => t('Customer last name, used in store orders (billing or shipping information).'),
    'group' => 'uc_store',
  );

  $variables['uc_field_email'] = array(
    'title' => 'Email',
    'group' => 'uc_store',
  );

  $variables['uc_field_phone'] = array(
    'title' => 'Phone',
    'group' => 'uc_store',
  );

  $variables['uc_field_company'] = array(
    'title' => 'Company',
    'group' => 'uc_store',
  );

  $variables['uc_field_address'] = array(
    'title' => 'Address',
    'group' => 'uc_store',
  );

  $variables['uc_field_street'] = array(
    'title' => 'Street',
    'group' => 'uc_store',
  );

  $variables['uc_field_street1'] = array(
    'title' => 'Street address 1',
    'group' => 'uc_store',
  );

  $variables['uc_field_street2'] = array(
    'title' => 'Street address 2',
    'group' => 'uc_store',
  );

  $variables['uc_field_city'] = array(
    'title' => 'City',
    'group' => 'uc_store',
  );

  $variables['uc_field_zone'] = array(
    'title' => 'Zone',
    'group' => 'uc_store',
  );

  $variables['uc_field_postal_code'] = array(
    'title' => 'Postal code',
    'group' => 'uc_store',
  );

  $variables['uc_field_country'] = array(
    'title' => 'Country',
    'group' => 'uc_store',
  );

  return $variables;
}

/**
 * Implements hook_variable_group_info().
 */
function uc_store_variable_group_info() {
  $groups['uc_store'] = array(
    'title' => t('Ubercart store settings'),
    'access' => 'administer store',
  );

  return $groups;
}

