function feeds_unlock_tab_form_submit in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.pages.inc \feeds_unlock_tab_form_submit()
Form submit handler. Resets all feeds state.
File
- ./
feeds.pages.inc, line 334 - Menu callbacks, form callbacks and helpers.
Code
function feeds_unlock_tab_form_submit($form, &$form_state) {
$form_state['redirect'] = $form['#redirect'];
$feed_nid = empty($form['#feed_nid']) ? 0 : $form['#feed_nid'];
$importer_id = $form['#importer_id'];
feeds_source($importer_id, $feed_nid)
->unlock();
drupal_set_message(t('Importer unlocked.'));
}