function node_activeedit_bars in Javascript Tools 5
File
- activeedit/
modules/ node.inc, line 148
Code
function node_activeedit_bars() {
$bars = array();
$bars['node'] = array(
'#selector' => 'div.node',
'#form_function' => 'node_form_array',
'#target' => 'node/*/edit',
'#id_field' => 'nid',
);
$bars['node']['options'] = array(
'#title' => t('publishing options'),
'#submit_text' => t('Submit'),
'#access' => user_access('administer nodes'),
'#form' => array(
'node_form' => array(
array(
'options',
'status',
),
array(
'options',
'promote',
),
array(
'options',
'sticky',
),
),
),
);
return $bars;
}