function purge_item_add_form_submit in Purge 7.2
Callback for the select button on the template form.
File
- includes/
purge_ui.inc, line 108 - Provides administrative interface for the Purge module.
Code
function purge_item_add_form_submit($form, &$form_state) {
if (isset($form_state['values']['template_select'])) {
// New item selected.
if ($form_state['values']['template_select'] == 'new') {
$form_state['redirect'] = 'admin/config/system/purge/add/' . $form_state['values']['item_type'] . '/new';
}
else {
$form_state['redirect'] = 'admin/config/system/purge/example/' . $form_state['values']['item_type'] . '/' . $form_state['values']['template_select'];
}
}
}