forked from drupal-issue/fieldable_panels_panes
-
Notifications
You must be signed in to change notification settings - Fork 0
Mirror of http://drupal.org/project/fieldable_panels_panes provided by hubdrop.
drupal-fork/fieldable_panels_panes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Fieldable Panel Panes supports multiple bundles, which may be managed at admin/structure/fieldable-panels-panes. Bundles can also be created in a module via hook_entity_info_alter(). The code will look something like this: function MYMODULE_entity_info_alter(&$entity_info) { $entity_info['fieldable_panels_pane']['bundles']['my_bundle_name'] = array( 'label' => t('My bundle name'), 'pane category' => t('My category name'), 'pane top level' => FALSE, // set to true to make this show as a top level icon 'pane icon' => '/path/to/custom/icon/for/this/pane.png', 'admin' => array( 'path' => 'admin/structure/fieldable-panels-panes/manage/%fieldable_panels_pane_type', 'bundle argument' => 4, // Note that this has all _ replaced with - from the bundle name. 'real path' => 'admin/structure/fieldable-panels-panes/manage/my-bundle-name', 'access arguments' => array('administer fieldable panels panes'), ), ); } Fields are then added to your bundle as normal through the Manage Fields and Display Fields tabs in the UI. You can use this hook to rename or remove the default bundle but remember that doing so will break any content currently using that bundle. If you do this be sure to also fix any content already using it. It is recommended that you use the bundle management UI in admin/structure/fieldable-panels-panes so you don't have to maintain this yourself.
About
Mirror of http://drupal.org/project/fieldable_panels_panes provided by hubdrop.
Resources
Stars
Watchers
Forks
Packages 0
No packages published