function custom_pub_node_admin_content in Custom Publishing Options 7
Menu callback: content administration form.
_state
Parameters
$form:
Return value
array
1 string reference to 'custom_pub_node_admin_content'
- custom_pub_forms in ./
custom_pub.module - Implements hook_forms().
File
- ./
custom_pub.admin.inc, line 289 - Admin functions.
Code
function custom_pub_node_admin_content($form, $form_state) {
custom_pub_node_admin_inc_add();
if (isset($form_state['values']['operation']) && $form_state['values']['operation'] == 'delete') {
$del_form = node_multiple_delete_confirm($form, $form_state, array_filter($form_state['values']['nodes']));
//we have to add a custom validation function that adds the node.admin.inc file ahead of the submit handlers
array_unshift($del_form['#submit'], 'custom_pub_node_admin_inc_add');
return $del_form;
}
$form['filter'] = custom_pub_node_filter_form();
$form['#submit'][] = 'custom_pub_node_filter_form_submit';
$form['admin'] = node_admin_nodes();
//same as above
array_unshift($form['admin']['options']['submit']['#validate'], 'custom_pub_node_admin_inc_add');
$form['#validate'][] = 'custom_pub_node_admin_inc_add';
return $form;
}