Commit b780b668 authored by mfer's avatar mfer

Added author uid to theme block function for ease of custom theming. From...

Added author uid to theme block function for ease of custom theming.  From http://drupal.org/node/144209
parent dffd4f18
......@@ -50,7 +50,7 @@ function bloginfo_block($op = 'list', $delta = 0) {
$results = db_query("SELECT title, description, format FROM {bloginfo} WHERE uid = %d", $authorid);
$bloginfo = db_fetch_object($results);
$block['subject'] = check_plain($bloginfo->title);
$block['content'] = theme('bloginfo_block',$bloginfo->description, $bloginfo->format);
$block['content'] = theme('bloginfo_block',$bloginfo->description, $bloginfo->format, $authorid);
return $block;
}
}
......@@ -60,7 +60,7 @@ function bloginfo_block($op = 'list', $delta = 0) {
/**
* Theme Function: Theme bloginfo block content
*/
function theme_bloginfo_block($description, $format) {
function theme_bloginfo_block($description, $format, $author) {
return check_markup($description, $format, FALSE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment