function fieldable_panels_panes_get_bundle_labels in Fieldable Panels Panes (FPP) 7
Get an array of entity bundle names, suitable for an options form.
3 calls to fieldable_panels_panes_get_bundle_labels()
- fieldable_panels_panes_exposed_bundles in ./
fieldable_panels_panes.module - Return array of FPP bundles exposed as blocks.
- fieldable_panels_panes_handler_filter_bundle::get_value_options in plugins/
views/ fieldable_panels_panes_handler_filter_bundle.inc - Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
- fieldable_panels_panes_settings in includes/
admin.inc - Page callback for settings page.
1 string reference to 'fieldable_panels_panes_get_bundle_labels'
File
- ./
fieldable_panels_panes.module, line 1190 - Maintains an entity that appears as panel pane content.
Code
function fieldable_panels_panes_get_bundle_labels() {
$bundles = array();
$entity_info = entity_get_info('fieldable_panels_pane');
foreach ($entity_info['bundles'] as $bundle => $info) {
$bundles[$bundle] = $info['label'];
}
asort($bundles);
return $bundles;
}