function uuid_vocabulary_features_export_options in UUID Features Integration 6
Implementation of hook_features_export_options().
File
- includes/
uuid_vocabulary.features.inc, line 10 - Features hooks for the uuid_vocabulary features component.
Code
function uuid_vocabulary_features_export_options() {
$options = array();
$query = 'SELECT v.vid, v.name, u.uuid
FROM {vocabulary} v INNER JOIN {uuid_vocabulary} u
ON v.vid = u.vid ORDER BY v.name ASC';
$result = db_query($query);
while ($vocab = db_fetch_object($result)) {
$options[$vocab->uuid] = $vocab->name;
}
return $options;
}