You are here

function scs_node_sort_submit in Simplenews Content Selection 8

Same name and namespace in other branches
  1. 7.2 scs.module \scs_node_sort_submit()

Form callback: submit handler for sorting nodes

1 call to scs_node_sort_submit()
scs_views_create_newsletter_action_submit in simplenews_content_selection_views/scs_views.module
Get the selected nodes and create a newsletter from it
2 string references to 'scs_node_sort_submit'
scs_form_node_admin_content_alter in ./scs.module
Implements hook_form_FORM_ID_alter().
scs_views_create_newsletter_action_form in simplenews_content_selection_views/scs_views.module
Configuration form for tis action. Not used as form, but used as a step to go to the node sorter.

File

./scs.module, line 174
General hooks and commonly-used functions

Code

function scs_node_sort_submit(&$form, &$form_state) {
  uasort($form_state['values']['nodes'], 'drupal_sort_weight');
}