Drupal

Drupal - Programmer Sheet

block.tpl.php variables
$block_html_id A unique HTML id
$block_id Incremental position of the block. Increases each output
$block_zebra Outputs either odd or even for each block region.
$block->delta An ID for the block
$block->module The module that generated the block
$block->region The block region embedding the current block.
$content The content of the block.
$classes String of CSS classes
$classes_array Array of HTML class attribute values.
$id Same as $block_id, but independent of any block region.
$is_admin TRUE when the current user is an administrator.
$is_front TRUE if the current page is the front page.
$logged_in TRUE when the current user is logged in.
$title The title of the block.
$title_prefix Array containing output prepended by modules.
$title_suffix Array containing output appended by modules
comment.tpl.php variables
$author The author of the comment
$changed Formatted date and time of when the comment was updated
$classes String of CSS classes.
$content An array of comment items
$created Formatted date and time of when the comment was created.
$new New comment marker.
$permalink Link directly to a specific comment.
$picture The author's picture.
$signature The author's signature.
$status The status of the comment (published, unpublished, preview)
$submitted Submission information of both the author and creation date.
$title The linked title of the comment
$title_prefix Array containing output prepended by modules.
$title_suffix Array containing output appended by modules.
html.tpl.php variables
$classes String of CSS classes
$css An array of CSS files for the current page.
$rdf_namespaces All RDF namespace prefixes used in the HTML document.
$grddle_profile A GRDDL profile allowing agents to extract RDF data.
$head Markup for the HEAD section, including: meta, keywords, etc.
$head_title Displays the site name and page title in the head of the document
$head_title_array An array containing the string parts used to construct the $head_title
$language The language object in which the site is being displayed.
$language->language The textual representation of the display language. For example, en or es.
$language->dir Whether the display language is left to right or right to left .
$page_top Initial markup for mockups that alter the page. Must be output first.
$page The rendered page content.
$page_bottom Final closing markup from modules that altered the page. Output last.
$styles Style tags necessary to import all CSS files for the page
$scripts Script tags needed to loaded all javascript files and settings for the page.
node.tpl.php variables
$classes String of CSS classes.
$classes_array Array of HTML class attribute values.
$comment Flag for the comment settings of the node
$comment_count The number of comments attached to the node.
$content An array of node items
$created Time the node was published formatted as a Unix timestamp.
$date The formatted creation date of the node
$display_submitted Whether submission information should be displayed.
$id Incremental position of the node. Increases each output.
$is_admin TRUE when the current user is an administrator.
$is_front TRUE if the current page is the front page
$logged_in TRUE when the current user is logged in.
$name The themed username of the node authour.
$node The full node objec
$node_url The URL of the current node.
$page Flag for the full state of the page.
$promote Whether the node is flagged for promote to front page .
$status Whether the node is flagged as published .
$sticky Whether the node is flagged sticky
$submitted Submission information created from $name and $date.
$readmore TRUE if the teaser content cannot hold the main body content
$teaser Flag for the teaser state of the node.
$terms The themed list of taxonomy terms
$title The title of the node.
$title_prefix Array containing output prepended by modules.
$title_suffix Array containing output appended by modules.
$type The node type.
$uid The User ID of the node's author
$user_picture The node author's picture.
$view_mode Whether the node is being viewed in full or teaser mode.
$zebra Outputs either odd or even for every other node.
page.tpl.php variables
$action_links Actions local to the page.
$base_path The base URL path of the Drupal install.
$breadcrumb The breadcrumb trail for the current page
$directory The directory in which the template is located.
$is_admin TRUE when the current user is an administrator.
$is_front TRUE if the current page is the front page.
$feed_icons A string of feed icons for the current page.
$front_page The URL of the front page
$highlight Replaces the $mission variable
$logged_in TRUE if the user is registered and signed in.
$logo The path to the logo image
$main_menu An array containing all main menu links.
$messages HTML for status and error messages.
$node The node object
$secondary_menu An array containing all secondary menu links.
$site_name The name of the website.
$site_slogan The slogan of the website.
$tabs Tabs linking to sub-pages beneath the current page.
$title_prefix Array containing output prepended by modules.
$title The page title
$title_suffix Array containing output appended by modules.
region.tpl.php variables
$content The content for this region, typically blocks
$classes A string of CSS classes.
$region The name of the region as defined in the .info file
$classes_array Array of html class attribute values.
$is_admin TRUE when the current user is an administrator.
$is_front TRUE if the current page is the front page.
$logged_in TRUE if the user is registered and signed in
Drupal Template Files
aggregator-feed-source.tpl.php Template to present the source of the feed.
aggregator-item.tpl.php Template to format an individual feed item.
aggregator-summary-item.tpl.php Template to present a linked feed item for summaries.
aggregator-summary-items.tpl.php Template to present feeds as list items.
aggregator-wrapper.tpl.php Template to wrap aggregator content
block.tpl.php Template for displaying block content.
block-admin-display-form.tpl.php Template to configure blocks
block--[region].tpl.php Template for a block in a specific region. Two -- for Drupal 7.
book-all-books-block.tpl.php Template for rendering book outlines within a block.
book-export-html.tpl.php Template for printed version of the book online
book-navigation.tpl.php Template to navgate books.
book-node-export-html.tpl.php Template for rendering a single node in a printer friendly outline.
comment.tpl.php Template for displaying comment content.
comment-wrapper.tpl.php Template to provide an HTML container for comments.
field.tpl.php Template to display the value of a field.
forums.tpl.php Template to display a forum which may contain containers and topics.
forum-icon.tpl.php Template to display an appropriate icon for a forum post.
forum-list.tpl.php Template to display a list of forums and containers.
forum-submitted.tpl.php Template to format a single string displaying the author and time of post.
forum-topic-list.tpl.php Template to display a list of forum topics.
html.tpl.php Page wrapper for your theme containing <html> open, closing, etc tags.
maintenance-page.tpl.php Template to display a single Drupal page when the website is offline.
node.tpl.php Template for displaying node content.
node--[content-type].tpl.php Template for displaying a node of a specific content type. Two -- for Drupal 7.
page.tpl.php Template for displaying page content.
page--front.tpl.php Template for the front page of the website. Two -- for Drupal 7.
page--node-[#].tpl.php Template for displaying a node of a specific ID. For example, node/10.
poll-bar.tpl.php Template to display the bar for a single choice in a poll.
poll-bar--block.tpl.php Template to display the bar for a choice in a poll when displayed in a block.
poll-results.tpl.php Template to display the poll results.
poll-results--block.tpl.php Template to display poll results in a block.
poll-vote.tpl.php Template for displaying a voting form for a poll.
profile-block.tpl.php Template for displaying user profiles within a block.
profile-listing.tpl.php Template for displaying a user and their data for member listing pages.
profile-wrapper.tpl.php Template for wrapping member listings and their profiles.
region.tpl.php Template for displaying region content.
search-block-form.tpl.php Template for displaying the search form block.
search-result.tpl.php Template for displaying a single search result.
search-results.tpl.php Template for displaying search results.
taxonomy-term.tpl.php Template for displaying a taxonomy term.
theme.info Stores meta data about the theme.
toolbar.tpl.php Template for displaying the admin toolbar.
user-picture.tpl.php Template for presenting a user's account picture.
user-profile.tpl.php Template for displaying a user's profile data.
user-profile-category.tpl.php Template for displaying profile categories.
user-profile-item.tpl.php Template for presenting profile values from profile fields or modules.

We use cookies!🍪

We value your privacy and use cookies to enhance your browsing experience, personalize content, and analyze site traffic. To learn more about how we use cookies and manage your preferences, review our Cookie Policy. By clicking 'Accept,' you consent to our use of cookies. Read more