function views_atom_rules_action_add_to_feed_form in Views Atom 6
Form callback for the views_atom_rules_action_add_to_feed action.
File
- ./
views_atom.rules.inc, line 37
Code
function views_atom_rules_action_add_to_feed_form($settings, &$form) {
foreach (views_atom_get_feed_displays() as $entry) {
$options[$entry['title']][$entry['name'] . '-' . $entry['display']] = $entry['display_title'];
}
$form['generating_display'] = array(
'#type' => 'select',
'#title' => t('Generating view'),
'#options' => $options,
'#default_value' => $settings['view'] . '-' . $settings['view_display'],
'#description' => t('Select the view and display that is responsible for generating the feed for this node. Only Feed displays are available.'),
);
}