I am using FullCalendar module to display some events. I had to modify the design of the calendar and the only solution was to alter the way javascript of fullcalendar displays events and so . Now i do not want that at an update of the fullcalendar, all the changes i have made to dissapear.My question is how can i unset the path of the current fullcalendar library and set the path to my own customized library ?

  • Try this: check where in the module the JavaScript library is getting included. Now change the path to your customized library – subhojit777 Jan 16 '13 at 8:40
  • @subhojit777 i know where it is but how can i do it permanentlly ? – Vlasin Jan 16 '13 at 8:41
  • You need to change that in fullcalendar module – subhojit777 Jan 16 '13 at 8:51
  • @subhojit777 and if the fullcalendar module is updated without me knowing about it ? It will not render my file anymore... – Vlasin Jan 16 '13 at 8:58
  • well this is the custom work you are doing in a contributed module, so you have to be careful when the module is updated – subhojit777 Jan 16 '13 at 9:20

According to this issue FullCalendar should support the Libraries API module - http://drupal.org/node/980886

Comment #7 is especially relevant I believe.

This means you should be able to use Libraries http://drupal.org/project/libraries to handle getting your customized version of the library to be used instead of the bundled one.

Ie. Make sure it is named the same as the original and stick it in sites/all/libraries


When you update a module what ever changes you have done would automatically be over written. if you have just made changes to js then it would be better to add that JS to your theme rather than the module itself.

You could you the hook_js_alter (On Drupal 7) or jsalter (On Drupal 6) in yout theme to remove the module specific js.

  • It will , but if there it is a hook or in theme something that rewrites an entry in the array then does not matter how much updates are made because it will rewrite the path everytime... The only problem is if the fullcalendar changes the entries in the array. – Vlasin Jan 16 '13 at 8:43
  • That would be an issue. But you could effectively remove all the js from the specific module. and add the js through theme. – Mohammed Shameem Jan 16 '13 at 8:52
  • Could you provide me an example of how could i do it ? – Vlasin Jan 16 '13 at 8:58
  • what version of drupla are you using? – Mohammed Shameem Jan 16 '13 at 9:02
  • pastebin.com/JrEczaUm – Mohammed Shameem Jan 16 '13 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.