You are here

function token_insert_text_elements in Token Insert 6.2

Implements hook_elements().

File

token_insert_text/token_insert_text.module, line 10
token insert module.

Code

function token_insert_text_elements() {
  $type = array();
  if (user_access('use token insert')) {
    $type['textfield'] = array(
      '#post_render' => array(
        'token_insert_text_post_render',
      ),
    );
    $type['textarea'] = array(
      '#post_render' => array(
        'token_insert_text_post_render',
      ),
    );
  }
  return $type;
}