Closed (fixed)
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2012 at 11:53 UTC
Updated:
6 Apr 2012 at 21:10 UTC
As said here db_link cannot be used with db_query.
I replace it with
$variables = db_select('variable', 'v')->fields('v', array('name'))->condition('name', db_like('openlayers_') . '%', 'LIKE')->execute()->fetchCol();
and it works fine.
This is the same for openlayers_ui and openlayers_views.
Comments
Comment #1
zzolo commentedGood catch @igarbla. I thought I had tested that out. I didn't end up using that way of doing, but using the global $conf.
http://zzolo.org/thoughts/tip-managing-variables-drupal-module
http://drupalcode.org/project/openlayers.git/commit/f61b897