You are here

function entityqueue_subqueue_edit_form_submit in Entityqueue 7

Submit callback for the subqueue edit form.

1 string reference to 'entityqueue_subqueue_edit_form_submit'
entityqueue_subqueue_edit_form in includes/entityqueue.admin.inc
Form callback; Displays the subqueue edit form.

File

includes/entityqueue.admin.inc, line 200
Administrative pages for Entity Queue.

Code

function entityqueue_subqueue_edit_form_submit($form, &$form_state) {
  $queue = $form_state['entityqueue_queue'];
  $subqueue = $form_state['entityqueue_subqueue'];
  entity_form_submit_build_entity('entityqueue_subqueue', $subqueue, $form, $form_state);
  $subqueue
    ->save();
  drupal_set_message(t('The %queue queue has been saved.', array(
    '%queue' => $subqueue
      ->label(),
  )), 'status');
}