I want to add an extra button on the node/edit drupal 7 form. That can be done by hooking into the form_alter:
$form['actions']['push'] = array(
'#type' => 'submit',
'#value' => t('Save && Push'),
'#callback' => 'my_callback',
);
In my callback I want to run my custom Push function and save the node.
Any ideas how to achieve this?
function my_callback_action(&$form, &$form_state) {
dpm('my_callback_action');
return '';
}