You are here

function javascript_libraries_delete_form in JavaScript Libraries Manager 7

Form builder function for page callback.

1 string reference to 'javascript_libraries_delete_form'
javascript_libraries_menu in ./javascript_libraries.module
Implements hook_menu().

File

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

Code

function javascript_libraries_delete_form($form, &$form_state, $library = array()) {
  $form = array();
  $form['#library'] = $library;
  return confirm_form($form, t('Are you sure you want to delete library %name?', array(
    '%name' => $library['name'],
  )), 'admin/config/system/javascript-libraries/custom');
}