You are here

function comment_deploy_comment_admin_overview_submit in Deploy - Content Staging 6

Submit handler for comment_admin_overview_form().

Grabs comments and redirects to the appropriate form, depending on the operation being performed.

1 string reference to 'comment_deploy_comment_admin_overview_submit'
comment_deploy_form_comment_admin_overview_alter in modules/comment_deploy/comment_deploy.module
Implementation of hook_form_FORM_ID_alter().

File

modules/comment_deploy/comment_deploy.module, line 167
Deployment API which enables modules to deploy items between servers.

Code

function comment_deploy_comment_admin_overview_submit($form, &$form_state) {
  list($id, $operation) = explode('-', $form_state['values']['operation']);
  if ($id == 'comment_deploy') {
    $comments = implode(",", $form_state['values']['comments']);
    if ($operation == 'add_to_plan') {
      drupal_goto('comment_operations/deploy/' . $comments);
    }
    drupal_goto('comment_operations/deploy_now/' . $comments);
  }
}