You are here

function asin_elements in Amazon Product Advertisement API 6

Implementation of FAPI hook_elements().

Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.

Drupal will automatically theme the element using a theme with the same name as the hook_elements key.

File

asin/asin.module, line 303
Defines a field type for referencing an Amazon product.

Code

function asin_elements() {
  return array(
    'asin_text' => array(
      '#input' => TRUE,
      '#process' => array(
        'asin_text_process',
      ),
    ),
    'asin_autocomplete' => array(
      '#input' => TRUE,
      '#process' => array(
        'asin_autocomplete_process',
      ),
      '#autocomplete_path' => FALSE,
      '#value_callback' => 'asin_autocomplete_value',
    ),
  );
}