You are here

function flag_features_export_options in Flag 7.3

Same name and namespace in other branches
  1. 6.2 includes/flag.features.inc \flag_features_export_options()
  2. 7.2 includes/flag.features.inc \flag_features_export_options()

Implements hook_features_export_options().

File

includes/flag.features.inc, line 52
Features integration for Flag module.

Code

function flag_features_export_options() {
  $options = array();

  // Get all flags, including disabled defaults.
  $flags = flag_get_flags() + flag_get_default_flags(TRUE);
  foreach ($flags as $name => $flag) {
    $options[$name] = drupal_ucfirst(check_plain($flag->entity_type)) . ': ' . check_plain($flag->title);
  }
  return $options;
}