function asset_widget_base_form_submit_delete in Asset 7
Custom submit handler.
1 string reference to 'asset_widget_base_form_submit_delete'
- asset_widget_form_alter in modules/
asset_widget/ asset_widget.module - Implements hook_form_alter().
File
- modules/
asset_widget/ asset_widget.module, line 423 - Code for the Asset widget module.
Code
function asset_widget_base_form_submit_delete($form, &$form_state) {
if (!empty($form_state['redirect'])) {
if (($url = drupal_parse_url($form_state['redirect'])) && asset_widget_in_frame_form()) {
// Pass asset_frame to further actions.
$url['query']['asset_frame'] = $_GET['asset_frame'];
if (isset($_GET['render'])) {
$url['query']['render'] = $_GET['render'];
}
$form_state['redirect'] = array(
$url['path'],
array(
'query' => $url['query'],
),
);
}
}
}