You are here

function panels_form_panels_content_types in Panels 6.2

Same name and namespace in other branches
  1. 5.2 content_types/form.inc \panels_form_panels_content_types()

Callback function to supply a list of content types.

File

content_types/form.inc, line 7

Code

function panels_form_panels_content_types() {
  $items['form'] = array(
    'title' => t('Generic form'),
    'content_types' => 'panels_admin_content_types_form',
    // only provides a single content type
    'single' => TRUE,
    'render callback' => 'panels_content_form',
    'add callback' => 'panels_admin_edit_form',
    'edit callback' => 'panels_admin_edit_form',
    'title callback' => 'panels_admin_title_form',
    'render last' => TRUE,
  );
  return $items;
}