Answers for "drupal hook_views_post_render()"

1

drupal 7 hook_views_pre_render

function hook_views_pre_render(&$view) {

  // Scramble the order of the rows shown on this result page.
  // Note that this could be done earlier, but not later in the view execution
  // process.
  shuffle($view->result);
}
Posted by: Guest on March-17-2021

Browse Popular Code Answers by Language