You are here

function fieldable_panels_panes_fieldable_panels_pane_ctools_content_types in Fieldable Panels Panes (FPP) 7

Small hook implementation of plugin.

We have to use this because the form here can be loaded via form caching and if this .inc file is loaded before the plugin is requested, the $plugin = array() notation doesn't work.

File

plugins/content_types/fieldable_panels_pane.inc, line 15
CTools content type to render a fielded panel pane.

Code

function fieldable_panels_panes_fieldable_panels_pane_ctools_content_types() {
  return array(
    'title' => t('Fielded custom content'),
    'no title override' => TRUE,
    'description' => t('Create custom panels pane with fields'),
    'category' => t('Fielded panes'),
    'all contexts' => TRUE,
    'defaults' => array(
      'view_mode' => 'full',
    ),
    // Callback to load the FPP.
    'content type' => 'fieldable_panels_panes_fieldable_panels_pane_content_type',
    // Functionality for editing an FPP.
    'edit text' => t('Edit'),
    // Form API callback.
    'edit form' => 'fieldable_panels_panes_fieldable_panels_pane_content_type_edit_form',
    // Access callback.
    'check editable' => 'fieldable_panels_pane_content_type_edit_form_access',
  );
}