You are here

function entityqueue_subqueue_clear_validate in Entityqueue 7

Validation callback to clear items in the subqueue.

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

File

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

Code

function entityqueue_subqueue_clear_validate($form, &$form_state) {
  $queue = $form_state['entityqueue_queue'];
  $field_name = _entityqueue_get_target_field_name($queue->target_type);
  $lang = $form[$field_name]['#language'];
  foreach (array(
    'input',
    'values',
  ) as $state) {
    $form_state[$state][$field_name][$lang] = array();
  }
}