Skip to content

Instantly share code, notes, and snippets.

@batandwa
Last active October 1, 2015 18:07
Show Gist options
  • Save batandwa/2034816 to your computer and use it in GitHub Desktop.
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.
<?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