Assuming I have the following PHP. I want to add different effects to each of the ajax commands
function my_ajax_callback($form, $form_state) {
$result = array(
'#type' => 'ajax',
'#commands' => array(
ajax_command_replace($selector1, $html1),
ajax_command_replace($selector2, $html2),
),
);
return $result;
}
I understand the default is something along the lines of:
ajax_command_replace($selector, $html, $settings = NULL)
However I do not know what to do with the $settings = NULL for a fade or slide to work. I've tried all combinations, but to no avail.
e.g.
ajax_command_replace($selector, $html, array('effect' => 'slide'),
ajax_command_replace($selector, $html, array('#effect' => 'slide'),
ajax_command_replace($selector, $html, 'slide')