Advertising sustains the DA. Ads are hidden for members. Join today

Style Guide: Helper functions

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

Style Guide uses the following helper functions to generate content:

  • styleguide_list() - return a simple array of words
  • styleguide_word() - return a random word or words.
  • styleguide_header() - return a random table header array.
  • styleguide_rows() - return a random table row array.
  • styleguide_lorem() - return Lorem Ipsum text, used to generate words and phrases.
  • styleguide_paragraph() - return HTML paragraph(s) of random text
  • styleguide_image() - provide a default image for display.
  • styleguide_sentence() - return a random sentence.
  • styleguide_form() - return a sample form, showing all form elements.
  • styleguide_pager() - simulate Drupal pagination
  • styleguide_links() - return an array of random links
  • styleguide_menu_item() - return a random menu item
  • styleguide_ul_links() - return a links array for theme_links()

Help improve this page

Page status: Not set

You can: