Drupal change the number of items in view PHP I have a view page that show 10 elements. The idea is to make three buttons for the user to select if he wants to display 10 elements, 20 elements or 30 elements in the view page. Is there any way to do in PHP? I have search in Google but I can't find anything.

I know I can change in the View config -> Pager:
insert HTML markup on the View header and make three buttons with HTML markup and then link each of the button like

&lt;ul&gt;
  &lt;li&gt;&lt;a href="/search?items_per_page=10"&gt;10 elements&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="/search?items_per_page=20"&gt;20 elements&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="/search?items_per_page=30"&gt;30 elements&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


After this you can style the button however you want.