function panels_admin_edit_node_content in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/node_content.inc \panels_admin_edit_node_content()
Returns an edit form for the custom type.
1 string reference to 'panels_admin_edit_node_content'
- panels_node_content_panels_content_types in content_types/
node_content.inc - Callback function to supply a list of content types.
File
- content_types/
node_content.inc, line 136
Code
function panels_admin_edit_node_content($id, $parents, $conf = array()) {
if ($conf == array()) {
$conf = array(
'links' => TRUE,
'page' => TRUE,
'no_extras' => TRUE,
'override_title' => FALSE,
'override_title_text' => '',
'teaser' => TRUE,
'identifier' => '',
'link' => TRUE,
);
}
$form['aligner_start'] = array(
'#value' => '<div class="option-text-aligner">',
);
$form['override_title'] = array(
'#type' => 'checkbox',
'#default_value' => $conf['override_title'],
'#title' => t('Override title'),
'#id' => 'override-title-checkbox',
);
$form['override_title_text'] = array(
'#type' => 'textfield',
'#default_value' => $conf['override_title_text'],
'#size' => 35,
'#id' => 'override-title-textfield',
);
$form['aligner_stop'] = array(
'#value' => '</div><div style="clear: both; padding: 0; margin: 0"></div>',
);
$form['link'] = array(
'#title' => t('Link title to node'),
'#type' => 'checkbox',
'#default_value' => $conf['link'],
'#description' => t('Check here to make the title link to the node.'),
);
$form['teaser'] = array(
'#title' => t('Teaser'),
'#type' => 'checkbox',
'#default_value' => $conf['teaser'],
'#description' => t('Check here to show only the node teaser.'),
);
$form['page'] = array(
'#type' => 'checkbox',
'#default_value' => $conf['page'],
'#title' => t('Node page'),
'#description' => t('Check here if the node is being displayed on a page by itself.'),
);
$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['no_extras'] = array(
'#type' => 'checkbox',
'#default_value' => $conf['no_extras'],
'#title' => t('No extras'),
'#description' => t('Check here to disable additions that modules might make to the node, such as file attachments and CCK fields; this should just display the basic teaser or body.'),
);
$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;
}