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.
Hi, I had to create custom module to implement fitbit intergation on one of our drupal sites. I really like fitness and most part of my drupal sites are dedicated to this theme. Fitbit is a very interesting system which collect user data such as quantity of calories during the day, quantity of steps and on theirs basis calculates fitness activity. As I think it is very good and challenging to have one of fitbit devices which track your activity and make it visible to your friends, colleagues etc.
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!