Hi, if you need to create menu callback for ajax functions you can use hook_menu() but there are a lot of nuances. First of all do you want to cache callback data in cache_page and/or reverse proxy(if you use it)? If yes it will increase your performance significantly. I have seen in multiple modules such code.
In one of my recent tasks I had to create custom token to show current page url inside ads targeting. I will share my code.
Hi sometimes we need quickly import a lot of redirects. We can just put file with redirects in format:
Then read line by line and create redirect if it is unique.
We can easilly do all this using code given below.
Hi Sometimes facebook cache doesn't allow us to make visible changes we made into node. To prevent this cache issues we can create custom module and add hook given below. It will flush facebook cache on node update event.
Thank you. Continue doing drupal!