function _block_class_styles_bean_bundles in Block Class Styles 7.2
Return value
array Values are the bundle types that should include styles.
Related topics
3 calls to _block_class_styles_bean_bundles()
- block_class_styles_admin_settings in ./
block_class_styles.admin.inc - Form builder. Configure my_module.
- block_class_styles_field_extra_fields in ./
block_class_styles.module - Implements hook_field_extra_fields().
- _block_class_styles_update_entity_setting in ./
block_class_styles.admin.inc - Callback to update the setting of a an entity
File
- ./
block_class_styles.module, line 533 - Base module file for block_class_styles
Code
function _block_class_styles_bean_bundles() {
$bundles = variable_get('block_class_styles_beans', NULL);
if (is_null($bundles)) {
$info = entity_get_info('bean');
$bundles = array_keys($info['bundles']);
}
return $bundles;
}