Last active
February 17, 2021 03:48
-
-
Save frankyonnetti/5944733 to your computer and use it in GitHub Desktop.
Drupal - display field names and array #drupal
This file contains hidden or 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
<?php // display all | |
dsm(get_defined_vars()); | |
?> | |
<?php //http://drupal.org/node/308732 | |
print '<pre>'; | |
var_dump(get_defined_vars()); | |
print '</pre>'; | |
?> | |
<?php // display fields array | |
dsm($field_name); | |
?> | |
<?php // display array | |
dsm(array_keys(get_defined_vars())); | |
?> | |
<?php //print all array keys in a template | |
print_r(array_keys($content)); | |
?> | |
<?php dpm($content); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment