function panels_node_content_add in Panels 6.2
Returns the form for a new node.
1 string reference to 'panels_node_content_add'
- 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 134 - panels_node_content.module
Code
function panels_node_content_add($id, $parents, $conf = array()) {
$form = panels_node_content_edit($id, $parents, $conf);
$form['nid'] = array(
'#prefix' => '<div class="no-float">',
'#suffix' => '</div>',
'#title' => t('Enter the title or NID of a post'),
'#description' => t('To use a NID from the URL, you may use %0, %1, ..., %N to get URL arguments. Or use @0, @1, @2, ..., @N to use arguments passed into the panel.'),
'#type' => 'textfield',
'#maxlength' => 512,
'#autocomplete_path' => 'panels/node/autocomplete',
'#weight' => -10,
);
$form['validate_me'] = array(
'#type' => 'value',
'#value' => TRUE,
);
return $form;
}