I tried to enable only Backbone Library and add it in a custom module with drupal_add_library('backbone_library', 'backbone_library'); then I got the error Call to undefined function _backbone_variable_get() in {...}/sites/all/modules/contrib/backbone/modules/backbone_library/backbone_library.module on line 120.

Comments

dragonwize’s picture

Status: Active » Needs review
StatusFileSize
new2.01 KB

Patch attached replaces 2 calls to _backbone_variable_get() with standard variable_get() calls so that backbone_library module can be ran without backbone.module.

codesidekick’s picture

Tested the patch and works fine. I think this is an important issue as the backbone_library module currently crashes out when enabled without the backbone module.

Lots of projects may wish to use the backbone library without the backbone module - especially as the backbone module is still a work in progress.

codesidekick’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community