You are here

function varbase_fpp_entity_info_alter in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3

Implements hook_entity_info_alter().

File

modules/starter_kits/varbase_fpp/varbase_fpp.module, line 31

Code

function varbase_fpp_entity_info_alter(&$entity_info) {
  unset($entity_info['fieldable_panels_pane']['bundles']['fieldable_panels_pane']);

  // Slider fieldable panel pane
  $entity_info['fieldable_panels_pane']['bundles']['slideshow'] = array(
    'label' => t('Slideshow'),
    'pane category' => t('Content'),
    'pane top level' => TRUE,
    'pane icon' => drupal_get_path('module', 'varbase_fpp') . '/images/icons/slideshow.png',
    'admin' => array(
      'path' => 'admin/structure/fieldable-panels-panes/manage/%fieldable_panels_panes_type',
      'bundle argument' => 4,
      'real path' => 'admin/structure/fieldable-panels-panes/manage/slideshow',
      'access arguments' => array(
        'administer fieldable panels panes',
      ),
    ),
  );

  // HTML fieldable panel pane
  $entity_info['fieldable_panels_pane']['bundles']['raw_html'] = array(
    'label' => t('HTML'),
    'pane category' => t('Page elements'),
    'pane top level' => TRUE,
    'pane icon' => drupal_get_path('module', 'varbase_fpp') . '/images/icons/html.png',
    'admin' => array(
      'path' => 'admin/structure/fieldable-panels-panes/manage/%fieldable_panels_panes_type',
      'bundle argument' => 4,
      'real path' => 'admin/structure/fieldable-panels-panes/manage/raw_html',
      'access arguments' => array(
        'administer fieldable panels panes',
      ),
    ),
  );

  // WYSIWYG fieldable panel pane
  $entity_info['fieldable_panels_pane']['bundles']['wysiwyg'] = array(
    'label' => t('Text Block'),
    'pane category' => t('Page elements'),
    'pane top level' => TRUE,
    'pane icon' => drupal_get_path('module', 'varbase_fpp') . '/images/icons/text.png',
    'admin' => array(
      'path' => 'admin/structure/fieldable-panels-panes/manage/%fieldable_panels_panes_type',
      'bundle argument' => 4,
      'real path' => 'admin/structure/fieldable-panels-panes/manage/wysiwyg',
      'access arguments' => array(
        'administer fieldable panels panes',
      ),
    ),
  );
}