You are here

function devel_doc_function_form_submit in Devel 7

Same name and namespace in other branches
  1. 6 devel.module \devel_doc_function_form_submit()

Submit handler for the API lookup form.

File

./devel.module, line 1040
This module holds functions useful for Drupal development.

Code

function devel_doc_function_form_submit($form, &$form_state) {
  $version = $form_state['values']['version'];
  $function = $form_state['values']['function'];
  $api = variable_get('devel_api_url', 'api.drupal.org');
  $form_state['redirect'] = "http://{$api}/api/function/{$function}/{$version}";
}