function blog_page in Drupal 4
Same name and namespace in other branches
- 5 modules/blog/blog.module \blog_page()
Menu callback; displays a Drupal page containing recent blog entries.
1 string reference to 'blog_page'
- blog_menu in modules/
blog.module - Implementation of hook_menu().
File
- modules/
blog.module, line 113 - Enables keeping an easily and regularly updated web page or a blog.
Code
function blog_page($a = NULL, $b = NULL) {
if (is_numeric($a)) {
// $a is a user ID
if ($b == 'feed') {
return blog_feed_user($a);
}
else {
return blog_page_user($a);
}
}
else {
if ($a == 'feed') {
return blog_feed_last();
}
else {
return blog_page_last();
}
}
}