Last active
October 1, 2015 18:07
-
-
Save batandwa/2034816 to your computer and use it in GitHub Desktop.
Drupal 6 - Display the Form ID of every form in the form in a text box.
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
<?php | |
$form['form_id_display'] = array( | |
'#markup' => '<div style="border:1px solid #333; padding: 5px;">' . $form_id . '</div>', | |
'#value' => '<div style="border:1px solid #333; padding: 5px;">' . $form_id . '</div>', | |
'#weight' => -999, | |
'#access' => user_access('administer nodes'), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment