function hook_express_bean_list_groups in Express 7.2
Example hook_express_bean_list_groups().
Group content types on 'block/add' page.
Parameters
$bundles: An array of grouped content types.
- 'group': A name you want to group beans by.
This can be any arbitrary name.
- 'title': The title you want displayed above the grouping.
- 'types': The human-readable name of the bean type you want to add to the group.
2 invocations of hook_express_bean_list_groups()
- express_add_content_bean_add in modules/
custom/ express_add_content/ express_add_content.module - express_add_content_modules_enabled in modules/
custom/ express_add_content/ express_add_content.module - Update hook_node_bundles, hook_bean_bundles caches.
File
- modules/
custom/ express_add_content/ express_add_content.api.php, line 40 - API hooks for the express_add_content module.
Code
function hook_express_bean_list_groups($bundles) {
$bundles['group']['title'] = 'News and Articles';
$bundles['group']['types'][] = 'Article List';
return $bundles;
}