White label entity type
Categories
Component ID
2045677
Component name
White label entity type
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1444
Component created
Component changed
Component body
The white label entity type (short: while) is a simple node-like entity type without any special functionality. The labels and paths used for the entity type can be configured using variables, enabling easy re-use of the entity type in situations where a custom entity type is needed.
Features
- Supports revisions
- Admin UI for managing multiple (exportable) bundles
- Views, Features, Token integration etc, as provided via the entity module
- Supports panelizer and page manager overrides for while_view
Dependencies
Requires a recent Entity API 7.x-1.2+ or manually patched with:
- #1105618-18: UI controller for content-entities
- #1619628-14: Entity UI '/add' page doesn't provide for an entity with bundles
Credits
This project has been initially developed and is maintained by drunomics.
Customization - Drupal 7
Use the following PHP snippet in your settings.php to customize your white label entity type:
$conf['while_strings']= array(
'entity label' => t('Red entity'),
'entity plural label' => t('Red entities'),
'entity description' => 'Red entities are red.',
'type label' => t('Red type'),
'type plural label' => t('Red types'),
'type description' => 'Types of red entities.',
'base path' => 'red',
'admin menu path' => 'admin/structure/red',
'admin menu description' => 'Manage red types, including fields.',
'admin menu path content' => 'admin/content/red',
);
