Below is a list of handy utility functions that make some tasks easier.
linodef_buttonsapi_validate_tagoptions($string)
Converts a string with options separated by "_" or "," in an array of Linodef tag options (linodef_buttonsapi.module).
linodef_buttonsapi_tagoptions_to_path($array)
Converts a linodef option array into a valid path (linodef_buttonsapi.module).