You are here

function uuid_entities_features_export_options in Universally Unique IDentifier 7

Implements [component]_features_export_options().

Deploy plans are used as the initial source for an export. Deploy solves complex dependency chains for us, so the entities actually can be used as is.

File

./uuid.features.inc, line 14
Features support to export entities from any Deploy <em>fetch-only</em> plan.

Code

function uuid_entities_features_export_options() {
  $options = array();
  if (module_exists('deploy')) {
    $plans = deploy_plan_load_all(array(
      'fetch_only' => 1,
    ));
    foreach ($plans as $plan) {
      $options[$plan->name] = $plan->title;
    }
  }
  return $options;
}