Mac os x web server - 156 CHAPTER 5 ADDING AND CUSTOMIZING THEMES
156 CHAPTER 5 ADDING AND CUSTOMIZING THEMES and purpose, and also to override it by redirecting calls to an overriding function if one is available in the theme. Table 5-2 lists some themable functions and what they do. It is far from complete but it will give you an idea of how themable functions are used in Drupal. Notice that all of the func tions listed start with theme_. Table 5-2. Some Themable Functions Function Location Purpose theme_block includes/theme.inc Handles blocks theme_box includes/theme.inc Builds a container theme_breadcrumb includes/theme.inc Generates a breadcrumb trail theme_comment modules/comment.module Handles comments theme_form_element includes/theme.inc Styles elements that are typically found in forms, such as text boxes and input tags theme_links includes/theme.inc Takes a list of links such as primary and secondary links and styles them theme_book_navigation modules/book.module Is responsible for the previous, up, and next links in book hierarchies theme_page includes/theme.inc Generates Drupal pages theme_node includes/theme.inc Handles nodes theme_profile_listing modules/profile.module Takes one user and displays her profile fields (for use in lists of users) theme_submenu includes/theme.inc Generates a submenu theme_user_profile modules/user.module Generates the listing of a user s account information; the one seen by visiting user/1, for example theme_xml_icon includes/theme.inc Generates an XML icon Some of the themable functions listed in Table 5-2 are used often, as I ll explain next. Main Themable Functions A small number of themable functions are responsible for the overall layout and construction of a Drupal page, and they are most commonly implemented in custom themes. Here is a list of those functions and a short description of what they do: theme_page($content): Places $content in a complete HTML page. Typically, theme_page will call further themable functions to get additional output such as the blocks, status messages, and HTML headers. All custom themes implement their own version of theme_page. In PHPTemplate, this is manifested in the form of a page.tpl.php file, which is the only required file a PHPTemplate theme must have.
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision shared web hosting services