You are here

function panelizer_panelize_entity_form in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 includes/common.inc \panelizer_panelize_entity_form()

Form used when an entity bundle is panelized but there is no default panel. Entities are then individually panelized.

1 string reference to 'panelizer_panelize_entity_form'
PanelizerEntityDefault::page_settings in plugins/entity/PanelizerEntityDefault.class.php
Switched page callback to give the settings form.

File

includes/common.inc, line 261
Contains common forms and routines that different object types use.

Code

function panelizer_panelize_entity_form($form, &$form_state) {
  $entity_type = $form_state['panelizer']->panelizer_type;
  $entity_info = entity_get_info($entity_type);
  $form = array();
  $form['markup'] = array(
    '#markup' => '<p>' . t('This %entity is not currently panelized.', array(
      '%entity' => $entity_info['label'],
    )) . '</p>',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Panelize it!'),
  );
  return $form;
}