You are here

function entity_features_export_options in Entity API 7

Implements hook_features_export_options().

Features component callback.

File

./entity.features.inc, line 159
Provides Features integration for entity types using the CRUD API.

Code

function entity_features_export_options($a1, $a2 = NULL) {

  // Due to a change in the Features API the first parameter might be a feature
  // object or an entity type, depending on the Features version. This check is
  // for backwards compatibility.
  $entity_type = is_string($a1) ? $a1 : $a2;
  return entity_features_get_controller($entity_type)
    ->export_options();
}