function views_ajax_command_scroll_top

Scroll to top of the current view.

Return value

An array suitable for use with the ajax_render() function.

Related topics

1 call to views_ajax_command_scroll_top()
views_ajax in drupal/core/modules/views/includes/ajax.inc
Menu callback to load a view via AJAX.

File

drupal/core/modules/views/includes/ajax.inc, line 167
Handles the server side AJAX interactions of Views.

Code

function views_ajax_command_scroll_top($selector) {
  $command = array(
    'command' => 'viewsScrollTop',
    'selector' => $selector,
  );
  return $command;
}