You are here

function javascript_libraries_delete_form_submit in JavaScript Libraries Manager 7

Form submit function for avascript_libraries_delete_form().

File

./javascript_libraries.admin.inc, line 382
Administrative management forms for JavaScript libraries.

Code

function javascript_libraries_delete_form_submit($form, &$form_state) {
  $library = $form['#library'];
  javascript_libraries_custom_delete($library['id']);
  drupal_set_message(t('Library %name has been removed', array(
    '%name' => $library['name'],
  )));
  $form_state['redirect'] = 'admin/config/system/javascript-libraries/custom';
}