function blockgroup_features_pipe_fe_block_settings_alter in Block Group 7
Same name and namespace in other branches
- 7.2 blockgroup.features.inc \blockgroup_features_pipe_fe_block_settings_alter()
Implements hook_features_pipe_COMPONENT_alter().
File
- ./
blockgroup.features.inc, line 36 - Features integration for Block Group module.
Code
function blockgroup_features_pipe_fe_block_settings_alter(&$pipe, $data, $export) {
foreach ($data as $block_id) {
// Add blockgroup if a block settings for a block group are about to be
// exported.
if (strpos($block_id, 'blockgroup-') === 0) {
$delta = substr($block_id, strlen('blockgroup-'));
$pipe['blockgroup'][$delta] = $delta;
}
}
}