![]() In this case, the arguments are ‘foo’, and ‘42’. Prints the arguments passed into the current function. Set the second parameter to TRUE if you want to return a string instead of printing it. ![]() kpr($input, $return = FALSE, $name = NULL) Since it uses Krumo, it has the added advantage that the output is very compact and unobtrusive. The output is displayed in the page header, making this a good choice if your theme doesn’t print the $messages variable. Pretty-prints a variable to the browser using krumo. You can use the $name parameter to distinguish between different calls to dvr(). dvr($input, $return = FALSE, $name = NULL) Uses var_dump() to pretty-print a variable to the browser (without using krumo). You can use the $name parameter to distinguish between different calls to dpr(). dpr($input, $return = FALSE, $name = NULL) Pretty-prints a variable to the browser (without using krumo). If, for some reason, you are not using Krumo, you can use the $name parameter to distinguish between different calls to dvm(). The output of this function is harder to read than the Krumo-based output of dpmt(), but it can be useful if you need to copy and paste it to another application. Uses var_dump() to print a variable to the ‘message’ area of the page using drupal_set_message(). If, for some reason, you are not using Krumo, you can use the $name parameter to distinguish between different calls to dpm(). Because the Devel module now comes with Krumo, the output is compact and unobtrusive. You can use this function to keep track of one or more variables when you’re working on the code running your site. Prints a variable to the ‘message’ area of the page using drupal_set_message().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |