function asaf_default_area_render_command in Asaf (ajax submit for any form) 8
Same name and namespace in other branches
- 7 asaf.module \asaf_default_area_render_command()
1 string reference to 'asaf_default_area_render_command'
File
- ./
asaf.module, line 377 - Main module file.
Code
function asaf_default_area_render_command($area, &$form_state) {
if ($form_state['asaf']['options'][ASAF_SETTINGS_STATUS_MESSAGES] == 'area') {
$messages = theme('status_messages');
if ($messages) {
$area = array(
'asaf_messages' => array(
'#markup' => $messages,
'#weight' => -99999999,
),
) + $area;
}
}
return ajax_command_replace('#' . asaf_get_area_wrapper_id($area['#asaf_area'], $form_state), drupal_render($area));
}