You are here

function uuid_node_features_export_options in UUID Features Integration 6

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

Implementation of hook_features_export_options().

File

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

Code

function uuid_node_features_export_options() {
  $options = array();
  $types = node_get_types('names');
  $query = 'SELECT n.nid, n.title, n.type, u.uuid
    FROM {node} n INNER JOIN {uuid_node} u
    ON n.nid = u.nid ORDER BY n.type, n.title ASC';
  $result = db_query($query);
  while ($node = db_fetch_object($result)) {
    $options[$node->uuid] = t('@type: @title', array(
      '@type' => $types[$node->type],
      '@title' => $node->title,
    ));
  }
  return $options;
}