Active
Project:
Modernizr
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2014 at 10:40 UTC
Updated:
16 Dec 2014 at 14:11 UTC
Jump to comment: Most recent
We have lots of code from older versions of the module that I never really questioned that much. However, when I was making a new module recently, I did a full reading of the Libraries API "for developrs" docs. I realized we are rolling our own code for tons of stuff that Libraries provides, and simply making a hard dependency will allow me to remove a huge chunk of custom code we maintain.
I will give this a test and get a patch for review. I think we can use the $phase == 'update' part of hook_requirements() in order to avoid letting users upgrade without enabling the Libraries API first.
Comments
Comment #1
klonosTaking a look at the usage stats of core and those of Libraries API, one can see that about 60% of Drupal 7 sites use Libraries API. So, chances are that our ~1% of D7 sites already has Libraries API installed.
Point is that I would not worry too much about adding it as a hard dependency. Though checking before allowing upgrade sounds like a good thing for just in case.
Comment #2
ruplNice! Thanks for the feedback and especially the bit of data. That's convincing enough for me.