function custom_pub_node_filter_submit in Custom Publishing Options 6
Form submit function for the node_admin_content form.
1 string reference to 'custom_pub_node_filter_submit'
- custom_pub_form_alter in ./
custom_pub.module - Implements hook_form_alter().
File
- ./
custom_pub.module, line 362 - Adds the ability to add Custom publishing options to the node Add/Edit form.
Code
function custom_pub_node_filter_submit($form, $form_state) {
$types = variable_get('custom_pub_types', array());
switch ($form_state['values']['op']) {
case t('Filter'):
case t('Refine'):
if (isset($form_state['values']['filter'])) {
$filter = $form_state['values']['filter'];
list($type, $val) = explode('-', $form_state['values'][$filter]);
if (isset($types[$type])) {
$_SESSION['node_overview_filter'][] = array(
$filter,
$form_state['values'][$filter],
);
}
}
break;
}
}