I am working on a functionality which requires a JS file defined in '/sites/all/libraries/SOMEFILE.js' to be included on all pages of the site. Now this JS is not part of any module or even theme. So what should be the best way to include this file?
I know that we can add this in hook_theme() but I don't want to make this part of theme as in future there may be 10-15 more JS files like this and adding all those from hook_theme() will not be a good practice.
Also it is not recommended to include such files from hook_init().
Good morning,
after trying everything to make Facebook Connect module work, without any success, i've decided to integrate facebook API on my own.
I managed to write the code for facebook related login/logout but i don't know how to implement it with drupal authentication.
Is there a function or something to call during facebook login to automatically log into drupal site too? or is there a way to put my facebook login code into drupal one?
Je veut ajouté un champ de type couleur dans un type de contenu personnalisé; comme ajouter un champ de type Int ; est ce qu'il ya un champ predefini de type couleur.merci