function views_atom_handler_area_atom_tombstone::options_form in Views Atom 7
Default options form that provides the label widget that all fields should have.
Overrides views_handler_area_text::options_form
File
- includes/
views_atom_handler_area_atom_tombstone.inc, line 26 - Views area text handler.
Class
Code
function options_form(&$form, &$form_state) {
$form['use_push'] = array(
'#type' => 'checkbox',
// @todo better title?
'#title' => t('Use Push Hub'),
'#default_value' => $this->options['use_push'],
);
$form['hub_url'] = array(
'#title' => 'Hub URL',
'#type' => 'textfield',
'#default_value' => $this->options['hub_url'],
// @todo, better description.
'#description' => t('Enter an absolute path of a pubsubhubbub URL. You can also enter a path relative to this site which will then be transformed into an absolute.'),
'#dependency' => array(
'edit-options-use-push' => array(
1,
),
),
);
$form['feed_url'] = array(
'#title' => 'Feed URL',
'#type' => 'textfield',
'#default_value' => $this->options['feed_url'],
// @todo, better description.
'#description' => t('Enter an absolute path of a feed URL. You can also enter a path relative to this site which will then be transformed into an absolute.'),
);
$form['item_url'] = array(
'#title' => 'Item URL',
'#type' => 'textfield',
'#default_value' => $this->options['item_url'],
// @todo, better description.
'#description' => t('Enter an absolute path of the item to delete. You can also enter a path relative to this site which will then be transformed into an absolute.'),
);
parent::options_form($form, $form_state);
unset($form['content']);
}