You are here

function command_buttons_entity_info_alter in Command Buttons 7

Implementation of hook_entity_info_alter()

File

./command_buttons.module, line 122

Code

function command_buttons_entity_info_alter(&$entity_info) {

  // Command List
  $entity_info['fieldable_panels_pane']['bundles']['command_buttons'] = array(
    'label' => t('Add Command List'),
    'pane category' => t('Custom'),
    'pane top level' => TRUE,
    'pane icon' => drupal_get_path('module', 'panopoly_widgets') . '/images/icon_link.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/command-buttons',
      'access arguments' => array(
        'administer fieldable panels panes',
      ),
    ),
  );
}