You are here

function token_insert_entity_form in Token Insert Entity 7

Form builder to insert a token.

1 string reference to 'token_insert_entity_form'
token_insert_entity_form_data in ./token_insert_entity.pages.inc
Callback to return a form and associated metadata.

File

./token_insert_entity.pages.inc, line 10
Page callback implementations for token_insert_entity module.

Code

function token_insert_entity_form($form_state, $form_id) {
  $form = array();
  $form['entity'] = array(
    '#title' => t('Content title'),
    '#description' => t('Type the first words of the title of the content that you want to insert.'),
    '#type' => 'textfield',
    '#autocomplete_path' => 'token_insert_entity/autocomplete',
  );
  return $form;
}