Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OpenLayers API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 May 2010 at 08:26 UTC
Updated:
21 Jun 2010 at 13:00 UTC
Hi,
In my module I create a preview and a style using the export and the functions : openlayers_style_save($style), openlayers_preset_save($preset). But my problem is how can I delete this preset programmatically in the hook_uninstall ? I don't find any functions that seems to do that.
Thanks for your help.
Comments
Comment #1
zzolo commentedThere is no API function for deleting styles, presets, or layers. In the UI module, you can see it is done manually with a statement like:
We should have these API functions available. I am updating the title and category of this ticket to reflect that.
Comment #2
zzolo commentedDone. Added functions and even a couple tests:
http://drupal.org/cvs?commit=375094
Comment #3
sebgranel commentedThank you for your help zzolo