--- blog.module.orig 2005-10-11 15:44:34.000000000 -0400 +++ blog.module 2005-10-26 12:46:42.000000000 -0400 @@ -48,6 +48,13 @@ ); return array(t('History') => $form); } + if ($type == 'form'){ + return(array(array('title' => t('Blog settings'), 'data' => form_textfield(t('Blog name'), 'blogname', $edit['blogname'], 50, 50, t('Personalize the name of your blog'), NULL), 'weight' => 3))); + } + if ($type == 'validate') { + $edit['blogtitle'] = $edit['blogname'] ? $edit['blogname'] : t("%name's blog", array('%name' => $user->name)); + return array('blogname' => $edit['blogname'], 'blogtitle' => $edit['blogtitle']); + } } /** @@ -82,7 +89,7 @@ } $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, r.teaser, n.created, u.name, u.uid FROM {node} n INNER JOIN {node_revisions} r ON n.vid = r.vid INNER JOIN {users} u ON n.uid = u.uid WHERE n.type = 'blog' AND u.uid = %d AND n.status = 1 ORDER BY n.created DESC"), $uid, 0, variable_get('feed_default_items', 10)); - $channel['title'] = $account->name ."'s blog"; + $channel['title'] = $account->blogtitle; $channel['link'] = url("blog/$uid", NULL, NULL, TRUE); $channel['description'] = $term->description; node_feed($result, $channel); @@ -129,7 +136,7 @@ $account = user_load(array((is_numeric($uid) ? 'uid' : 'name') => $uid, 'status' => 1)); if ($account->uid) { - drupal_set_title($title = t("%name's blog", array('%name' => $account->name))); + drupal_set_title($title = t($account->blogtitle)); if (($account->uid == $user->uid) && user_access('edit own blog')) { $output = '