function token_insert_text_combobox in Token Insert 6.2
1 string reference to 'token_insert_text_combobox'
- token_insert_text_post_render in token_insert_text/
token_insert_text.module
File
- token_insert_text/
token_insert_text.module, line 51 - token insert module.
Code
function token_insert_text_combobox(&$form_state, $name) {
$options = token_insert_get_tokens();
$form['token_insert_text_combobox'] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#title' => t('Insert token'),
);
$form['token_insert_text_combobox']['token_insert_text_select'] = array(
'#type' => 'select',
'#options' => $options,
'#attributes' => array(
'id' => "token-insert-text-select-{$name}",
),
);
$form['token_insert_text_combobox']['token_insert_text_button'] = array(
'#type' => 'button',
'#value' => t('Insert'),
'#executes_submit_callback' => FALSE,
'#attributes' => array(
'class' => 'token-insert-text-button',
'rel' => $name,
),
);
return $form;
}