Created
January 27, 2015 20:23
-
-
Save kristianb21/8019e0d115bf93ea279e to your computer and use it in GitHub Desktop.
D7-PHP:drupal get args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args_not_clean = arg(); //Get Current Args | |
$args = array(); | |
foreach ($args_not_clean as $value) { | |
$args[] = check_plain($value); //sanitize URL arguments | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment