function views_atom_rules_action_add_nids_to_feed_form in Views Atom 6
Form callback for the viws_atom_rules_action_add_to_feed action.
File
- ./
views_atom.rules.inc, line 98
Code
function views_atom_rules_action_add_nids_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 these nodes. Only Feed displays are available.'),
);
$form['settings']['max_push_size'] = array(
'#type' => 'textfield',
'#title' => t('Maximum push size'),
'#default_value' => $settings['max_push_size'],
'#description' => t('This action may have a very large number of nodes passed to it. It may be beneficial to break this list of nodes into smaller chunks before passing the chunks on to Push Hub. Enter a positive integer as the maximum number of nodes to be sent to Push Hub together. If you enter 40 in this field and this action is called on a list of 120 nodes there will be three chunks of 40 nodes sent to Push Hub. Leave this field blank or enter 0 to always send the list of nodes to Push Hub as one chunk, no matter how large.'),
'#element_validate' => array(
'views_atom_element_validate_integer_positive_or_zero',
),
);
}