You are here

function fe_block_settings_features_export_options in Features Extra 6

Same name and namespace in other branches
  1. 7 fe_block/fe_block.module \fe_block_settings_features_export_options()

Implementation of hook_features_export_options().

File

./fe_block.module, line 31

Code

function fe_block_settings_features_export_options() {
  $options = array();
  $blocks = _block_rehash();
  usort($blocks, '_fe_block_compare');
  foreach ($blocks as $block) {

    // @see features.block.inc
    if (strpos($block['module'], '-') !== false) {
      continue;
    }
    $block_id = _fe_block_build_id($block);
    if (empty($block_id)) {
      continue;
    }
    $options[$block_id] = '[' . $block_id . '] ' . $block['info'];
  }
  return $options;
}