You are here

function uuid_term_features_export_options in UUID Features Integration 6

Same name and namespace in other branches
  1. 7 includes/uuid_term.features.inc \uuid_term_features_export_options()

Implementation of hook_features_export_options().

File

includes/uuid_term.features.inc, line 10
Features hooks for the uuid_term features component.

Code

function uuid_term_features_export_options() {
  $options = array();
  $query = 'SELECT t.tid, t.name, v.name AS vname, u.uuid
    FROM {term_data} t
    INNER JOIN {uuid_term_data} u ON t.tid = u.tid
    INNER JOIN {vocabulary} v ON t.vid = v.vid
    ORDER BY v.name ASC, t.name ASC';
  $result = db_query($query);
  while ($term = db_fetch_object($result)) {
    $options[$term->uuid] = $term->vname . ' - ' . $term->name;
  }
  return $options;
}