You are here

function scs_views_create_newsletter_action_form in Simplenews Content Selection 8

Same name and namespace in other branches
  1. 6.2 simplenews_content_selection_views/scs_views.module \scs_views_create_newsletter_action_form()
  2. 7.2 simplenews_content_selection_views/scs_views.module \scs_views_create_newsletter_action_form()
  3. 7 simplenews_content_selection_views/scs_views.module \scs_views_create_newsletter_action_form()

Configuration form for tis action. Not used as form, but used as a step to go to the node sorter.

File

simplenews_content_selection_views/scs_views.module, line 25
Integrate Simplenews Content Selection with views and views bulk operations

Code

function scs_views_create_newsletter_action_form($context, $form_state) {

  // Emulate the nodes submitted from admin/content/node
  $form_state['values']['nodes'] = $form_state['selection'];
  drupal_set_title(t('Sort nodes'));
  $form = array(
    '#submit' => array(
      'scs_node_sort_submit',
    ),
  );
  return scs_node_sort_form($form, $form_state);
}