function oembed_preset_ui::edit_form in oEmbed 6.0
Provide the actual editing form.
Overrides ctools_export_ui::edit_form
File
- plugins/
export_ui/ oembed_preset_ui.class.php, line 8
Class
Code
function edit_form(&$form, &$form_state) {
parent::edit_form($form, $form_state);
$form['width'] = array(
'#type' => 'textfield',
'#size' => 6,
'#default_value' => $form_state['item']->width,
'#title' => t('Max width'),
'#description' => t('A maximum width in pixels of the embed or 0 for no maximum.'),
);
$form['height'] = array(
'#type' => 'textfield',
'#size' => 6,
'#default_value' => $form_state['item']->height,
'#title' => t('Max height'),
'#description' => t('A maximum height in pixels of the embed or 0 for no maximum.'),
);
$form['disable_title'] = array(
'#type' => 'checkbox',
'#default_value' => !empty($form_state['item']->conf['disable_title']),
'#title' => t('Disable title when other embeddable data is available'),
);
}