I need to create a new filter for my view inside php snippet. Is it possible to do that using Drupal API? Can you also give me code example if possible?
Thank You, Toli开发者_如何学JAVAy
Your comment made much more sense ;)
What you are asking for is easily possible with Views out-of-the-box. Specifically, when you are in Views, lookk for the section called "Views arguments". To get you started there is a massive tutorial on drupal.org about them.
The path to your page will be something like:
movies/year/%
The character '%' signifies an argument
精彩评论