function oa_core_node_token_edit_form in Open Atrium Core 7.2
Edit form for the panel.
1 string reference to 'oa_core_node_token_edit_form'
- oa_core_node_token.inc in plugins/
content_types/ oa_core_node_token.inc
File
- plugins/
content_types/ oa_core_node_token.inc, line 45
Code
function oa_core_node_token_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['override_title']['#access'] = FALSE;
$form['override_title_text']['#access'] = FALSE;
$form['token_title'] = array(
'#title' => t('Displayed Title'),
'#description' => t('Enter the title to be displayed, including any token references.'),
'#type' => 'textfield',
'#default_value' => $conf['token_title'],
);
$form['token_body'] = array(
'#title' => t('Displayed Text'),
'#description' => t('Enter the full text to be displayed, including any token references.'),
'#type' => 'text_format',
'#format' => isset($conf['token_body']['format']) ? $conf['token_body']['format'] : 'panopoly_wysiwyg_text',
'#default_value' => isset($conf['token_body']['value']) ? $conf['token_body']['value'] : '',
);
$form['tokens'] = array(
'#theme' => 'token_tree',
'#token_types' => array(
'node',
),
'#recursion_limit' => 2,
);
return $form;
}