Functions

theme_empty_placeholder($message = NULL)

Theme an "empty" placeholder.

  • Calling parameters
  • $message
    Optional. Provide a translated message string.
  • Return
  • a string that can be used as placeholder for non existing content. Defaults to a translated "not available."

theme_read_more($path, $title = NULL)

Function to consistently theme "read more" links. Core patch pending at http://drupal.org/node/69571

  • Calling parameters
  • $path
    a drupal path or full url to the full resource. Include http:// if you link to external resource.
    $title
    an optional title that will provide a tooltip text when hovering over the link.
  • Return
  • An HTML string to display as the "read more" link.

theme_definition_list($items = array(), $title = NULL, $filter = TRUE)

Return a themed list of definition items. Core patch pending at http://drupal.org/node/54898

  • Calling parameters
  • $items
    An array of items to be displayed in the list.
  • The argument is: array("term" => $term, "definitions" => $definitions)
  • If you provide the $definition as arrays, you will get multiple DDs with each DT.
  • If you provide the $definitions as a string, only one DD will be added to the DT.
  • $title
    The title of the list.
    $filter
    Boolean value to define whether or not you wish to filter the input. Should be left TRUE, unless you sanitize the input yourself.
  • Return
  • An HTML string containing the list output.

theme_name_and_value_pair($name, $value, $filter = TRUE)

Return a themed name and value as a DT DD pair.

  • Calling parameters
  • $name
    The name string.
    $value
    The value string.
    $filter
    Bool passed on to definition list.
  • Return
  • An HTML string containing the formatted pair.

theme_none_option($string = NULL)

Returns a themed "none" string, for usage in a select form. This is in case you wish a general or consistent way of building the <none> strings.

  • Calling parameters
  • $string
    optionally provide a string that goes in the place of the word "none". If you provide this, it will not be translated.
  • Return
  • Themed "none" string ready to be inserted within a select list.

theme_shorten_string($short_string, $full_string, $count_addition = 3)

Function to theme the a shortened string (see "shorten_string" above).

  • Calling parameters
  • $short_string
    The shortened string
    $full_string
    The unshortened string, for display in the tooltip
    $count_addition
    Optional. The number of fill characters that the calling function wants to be added. Defaults to three (3).
  • Return
  • HTML string containing the themed string.

theme_vertical($text)

  • Calling parameters
  • $text
    The text to be formatted vertically.
  • Return
  • HTML string containing the themed string.

I find this CSS useful:


.vertical {
  font-size: 110%;
  font-family:"Courier New", Courier, mono;
}