You are here

function panels_node_content_edit in Panels 6.2

Returns an edit form for the custom type.

1 call to panels_node_content_edit()
panels_node_content_add in panels_node_content/panels_node_content.module
Returns the form for a new node.
1 string reference to 'panels_node_content_edit'
panels_node_panels_content_types in panels_node_content/panels_node_content.module
Implementation of hook_panels_content_types()

File

panels_node_content/panels_node_content.module, line 153
panels_node_content.module

Code

function panels_node_content_edit($id, $parents, $conf) {
  $form['nid'] = array(
    '#type' => 'value',
    '#default_value' => $conf['nid'],
  );
  $form['teaser'] = array(
    '#title' => t('Teaser'),
    '#type' => 'checkbox',
    '#default_value' => $conf['teaser'],
    '#description' => t('Check here to show only the node teaser'),
  );
  $form['links'] = array(
    '#type' => 'checkbox',
    '#default_value' => $conf['links'],
    '#title' => t('Display links'),
    '#description' => t('Check here to display the links with the post.'),
  );
  $form['leave_node_title'] = array(
    '#type' => 'checkbox',
    '#default_value' => $conf['leave_node_title'],
    '#title' => t('Leave node title'),
    '#description' => t('Advanced: if checked, do not touch the node title; this can cause the node title to appear twice unless your theme is aware of this.'),
  );
  $form['identifier'] = array(
    '#type' => 'textfield',
    '#default_value' => $conf['identifier'],
    '#title' => t('Identifier'),
    '#description' => t('Whatever is placed here will appear in $node->panel_identifier to make it easier to theme a node or part of a node as necessary.'),
  );
  return $form;
}