You are here

function search_autocomplete_config_features_export_options in Search Autocomplete 7.4

Implements hook_features_export_options().

This hook will alert features of which specific items of this component may be exported. For instances, in this case, we want to make available all the existing items. If there are no items to be exported, this component will not be made available in the features export page.

Return value

array A keyed array of items, suitable for use with a FormAPI select or checkboxes element.

File

./search_autocomplete.features.inc, line 24
Search Autocomplete Add support for CTools and feature import/export.

Code

function search_autocomplete_config_features_export_options() {
  $data = search_autocomplete_get_data();
  $options = array();
  foreach ($data as $value) {
    $options[$value->fid] = $value->title;
  }
  return $options;
}