Style Guide: Helper functions
Last updated on
30 April 2025
Style Guide uses the following helper functions to generate content:
styleguide_list()- return a simple array of wordsstyleguide_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 textstyleguide_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 paginationstyleguide_links()- return an array of random linksstyleguide_menu_item()- return a random menu itemstyleguide_ul_links()- return a links array fortheme_links()
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion