You are here

function conditional_fields_features_export_options in Conditional Fields 6.2

Same name and namespace in other branches
  1. 7.3 includes/conditional_fields.features.inc \conditional_fields_features_export_options()

Implementation of hook_features_export_options().

File

includes/conditional_fields.features.inc, line 6

Code

function conditional_fields_features_export_options() {
  $query = db_query("SELECT type FROM {conditional_fields}");
  while ($result = db_fetch_array($query)) {
    if (!isset($options['type'])) {
      $options[$result['type']] = t('@type conditions', array(
        '@type' => node_get_types('name', $result['type']),
      ));
    }
  }
  return $options;
}