Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ica1 on
Hi,
what are the hooks for custom the views UI ?
for example : add a section just after the "pager" section of views UI (second column) .
Thanks
Comments
maybe with hook_preprocess
maybe with hook_preprocess_HOOK() :
function views_ui_preprocess_views_view(&$variables)
in views_ui.module
I use hook_views_pre_render()
In some of my custom modules, I interact with the views UI use hook_views_pre_render() and I access different parts with a call to drupal_add_css() if the UI needs CS changes or hook_form_alter() if the form rendered by the views needs to change.
This is not my exact code, but it worked for me in some of my custom modules.
Hope this helps.
Bruce