example.com:8080/browse?category=137 is my URL for a taxonomy category page.
How am I supposed to take the category ID (137) from that URI?
|
You can take that id from get array, try
|
|||
|
If you are using Drupal 7 then you can make use of existing function drupal_get_query_parameters But also you can use
Make sure you use check_plain() to be sure of save URL values. |
|||
|