Community Documentation

Style Guide: Helper functions

Last updated December 19, 2012. Created by dead_arm on December 18, 2012.
Edited by tim.plunkett. Log in to edit this page.

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()

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Audience
Designers/themers, Site builders
Keywords
documentation
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.