Dev Tools Module

Some helper functions for working in Drupal

Functions include

  1. _sort_array_by_title (Sorts an array of objects by their title.)
  2. _ifnull (Replaces a null string with a string of your choice.)
  3. _showmem (Echoes the amount of memory used.)
  4. _get_node_id (Gets node id from title and type. Assumes this forms a unique combination.)
  5. print_r_html (Formatted print_r variant. If embedded in php code, will surround print_r statement in tags to preserve line breaks.)
  6. _array_to_table (Provided a simple array of arrays, returns HTML table.)