开发者

Drupal: Any way to detect if a view's path is changed?

开发者 https://www.devze.com 2023-01-14 20:23 出处:网络
A long shot..I know. Is it possible to detect if a view\'s page display path is changed via views UI? Is there some kind of hook that I coul开发者_开发百科d use for this? I\'m not sure how the Views

A long shot..I know.

Is it possible to detect if a view's page display path is changed via views UI? Is there some kind of hook that I coul开发者_开发百科d use for this?


I'm not sure how the Views UI is implemented, but one idea is to implement hook_form_alter() on the view editing form and detect any changes to the values with a custom submit function.


Maybe you should make the short story long.

You can't to the best of my knowledge hook into changes in a view when they are made.

You can however create the view as a feature and detect any changes made that way by storing the view as code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号