function asaf_default_area_render_command in Asaf (ajax submit for any form) 7
Same name and namespace in other branches
- 8 asaf.module \asaf_default_area_render_command()
1 string reference to 'asaf_default_area_render_command'
File
- ./
asaf.module, line 372
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));
}