You are here

function submitted_by_theme_registry_alter in Submitted By 6

An implementation of hook_theme_registry_alter()

Swap in our own replacement for theme_node_submitted(), allowing the site admin to configure the string on a per-nodetype basis.

File

./submitted_by.module, line 15
Take over the "Submitted by" theme function to allow different content types to have different strings.

Code

function submitted_by_theme_registry_alter(&$theme_registry) {
  if (!empty($theme_registry['form_element'])) {
    $theme_registry['node_submitted']['function'] = 'submitted_by_node_submitted';
    $theme_registry['comment_submitted']['function'] = 'submitted_by_comment_submitted';
  }
}