function _fe_block_info_by_theme in Features Extra 7
Returns the block definitions for a specific theme.
Parameters
string $theme: Machine name of the theme.
Return value
array Array of block definitions.
1 call to _fe_block_info_by_theme()
- fe_block_settings_features_export_render in fe_block/
fe_block.module - Implements hook_features_export_render().
File
- fe_block/
fe_block.module, line 172 - Provide features components for exporting core blocks and settings.
Code
function _fe_block_info_by_theme($theme) {
$blocks = array();
foreach (_fe_block_get_blocks($theme) as $block) {
// Blocks are only valid for export if we got a machine name for them.
if ($id = _fe_block_build_id($block)) {
$blocks[$id] = $block;
}
}
// Sort blocks by keys to get a consistent order.
ksort($blocks);
return $blocks;
}