function modal_page_modal_submit in Modal 4.1.x
Same name and namespace in other branches
- 4.0.x modal_page.module \modal_page_modal_submit()
Implements hook_modal_submit().
File
- ./
modal_page.module, line 193 - Main file for the Modal Page.
Code
function modal_page_modal_submit($modal, $modal_state, $modal_id) {
if ($modal_id != 'thank_you_for_installing_modal_page') {
return FALSE;
}
if (empty($modal_state['dont_show_again_option']) || $modal_state['dont_show_again_option'] == 'false') {
return FALSE;
}
$modal
->delete();
}