Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello. I use views_get_current_view() in Header of view to get some data from view
$view = views_get_current_view();
foreach ($view->result as $result)
{
$prices[] = Ceil(($result->field_commerce_price[0]['raw']['amount'])/100);
}
but if pagination is enabled, this code return results only for current page - not for all.
How can i get result for all pages
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commented