You are here

function variable_elements in Variable 6

Implementation of hook_elements().

File

./variable.module, line 19
Variable API module

Code

function variable_elements() {
  $type['variable'] = array(
    '#input' => TRUE,
    '#pre_render' => array(
      'variable_element_pre_render',
    ),
    '#post_render' => array(
      'variable_element_post_render',
    ),
    '#after_build' => array(
      'variable_element_after_build',
    ),
    '#process' => array(
      'variable_element_process',
    ),
    '#element_validate' => array(
      'variable_element_validate',
    ),
  );
  return $type;
}