drupal

Fitbit application for drupal site

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. 

Import multiple redirects from file

Hi sometimes we need quickly import a lot of redirects. We can just put file with redirects in format:

source/dummypage,redirect/destination-page

source/dummypage,redirect/destination-page

source/dummypage,redirect/destination-page

Then read line by line and create redirect if it is unique.

We can easilly do all this using code given below.

Tags: 
Subscribe to RSS - drupal