You are here

function uc_store_elements in Ubercart 6.2

Implements hook_elements().

File

uc_store/uc_store.module, line 365
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_elements() {
  $types = array();
  $types['tapir_table'] = array(
    '#columns' => array(),
    '#rows' => array(),
    '#tree' => TRUE,
    '#value' => NULL,
    '#pre_render' => array(
      'tapir_gather_rows',
    ),
    '#process' => 'form_expand_ahah',
  );
  $types['uc_quantity'] = array(
    '#input' => TRUE,
    '#size' => 5,
    '#maxlength' => 6,
    '#required' => TRUE,
    '#autocomplete_path' => FALSE,
    '#process' => array(
      'form_expand_ahah',
    ),
    '#element_validate' => array(
      'uc_store_validate_uc_quantity',
    ),
    '#theme' => 'textfield',
    '#theme_wrappers' => array(
      'form_element',
    ),
    '#allow_zero' => FALSE,
  );
  return $types;
}