function ctools_term_list_content_type_edit_form in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/content_types/term_context/term_list.inc \ctools_term_list_content_type_edit_form()
Returns an edit form for the custom type.
File
- plugins/
content_types/ term_context/ term_list.inc, line 85
Code
function ctools_term_list_content_type_edit_form(&$form, &$form_state) {
$conf = $form_state['conf'];
$form['type'] = array(
'#type' => 'radios',
'#title' => t('Which terms'),
'#options' => ctools_admin_term_list_options(),
'#default_value' => $conf['type'],
'#prefix' => '<div class="clear-block no-float">',
'#suffix' => '</div>',
);
$form['list_type'] = array(
'#type' => 'select',
'#title' => t('List type'),
'#options' => array(
'ul' => t('Unordered'),
'ol' => t('Ordered'),
),
'#default_value' => $conf['list_type'],
);
}