2

When views exposed form is submitted without ajax it redirects to somepage like http://example.com/reports?taxonomy=tid&date=27%20F6%20f2005 etc.

I am curious to know ,in views module,inc file where it's submit handler is located,where is ajax callback?

I tried for some hours but no luck.

I know about hooks like form alter but that's not a concern.

I have no specific requirements,just for drupal learning :)

1

All of its functions are handled in programmatic way. You can look all functions are declared in theme.inc file located at module/views/theme/theme.inc location. Its hard to understand that core functions. But if you want to play with these functions then you will have to use the hooks .

NOTE: Never try to change any core file.

  • No,I don want to hack ,just for knowledge:) – Hiranya Sarma Jul 29 '15 at 7:56
0

You can hook in to the form and see submit handlers and which form elements have ajax callbacks by debugging the form.

kpr() is a function available when you have installed the Devel module.

function MYMODULE_form_views_exposed_form_alter(&$form, &$form_state) {       
  kpr($form);      
}

You will need to put the function above in a custom module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.