You are here

function drupalforfirebug_field_object in Drupal For Firebug 7

Same name and namespace in other branches
  1. 5 drupalforfirebug.module \drupalforfirebug_field_object()
  2. 6 drupalforfirebug.module \drupalforfirebug_field_object()
  3. 7.2 drupalforfirebug.module \drupalforfirebug_field_object()

Function for fieldsets that wrap object dumps

For efficiency and consistent behavior in firebug window Use to be a theme function, but that broke things

4 calls to drupalforfirebug_field_object()
drupalforfirebug_form_alter in ./drupalforfirebug.module
Implementation of hook_form_alter()
drupalforfirebug_node_process in ./drupalforfirebug.module
Processing function for Node API
drupalforfirebug_user_processing in ./drupalforfirebug.module
Processor for Hook Usering
drupalforfirebug_views_pre_view in ./drupalforfirebug.module
Implementation of hook_views_pre_view();

File

./drupalforfirebug.module, line 605

Code

function drupalforfirebug_field_object($marker, $id, $op = NULL, $data) {
  $output = '<fieldset class="toggler">';
  $output .= '<legend><strong><a href="#"><em>' . $op . '</em> $' . $marker . '->' . $id . '</a></strong></legend>';
  $output .= '<div class="content" style="display: none;">';
  $output .= '<div>' . '&nbsp;$' . $marker . ' = (' . '</div>';
  $output .= $data;
  $output .= '<div>' . '&nbsp;);</div>';
  $output .= '</div>';
  $output .= '</fieldset>';
  return $output;
}