function fieldable_panels_panes_exposed_bundles in Fieldable Panels Panes (FPP) 7
Return array of FPP bundles exposed as blocks.
2 calls to fieldable_panels_panes_exposed_bundles()
- fieldable_panels_panes_block_info in ./
fieldable_panels_panes.module - Implements hook_block_info().
- fieldable_panels_panes_block_view in ./
fieldable_panels_panes.module - Implements hook_block_view().
File
- ./
fieldable_panels_panes.module, line 899 - Maintains an entity that appears as panel pane content.
Code
function fieldable_panels_panes_exposed_bundles() {
// Get array of all FPP bundles and unset bundles not exposed as blocks.
$bundles = fieldable_panels_panes_get_bundle_labels();
foreach ($bundles as $bundle => $info) {
$expose = variable_get('fpp_expose_' . $bundle, FALSE);
if ($expose == FALSE) {
unset($bundles[$bundle]);
}
}
return $bundles;
}