function blog_page in Drupal 5
Same name and namespace in other branches
- 4 modules/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/ blog.module - Implementation of hook_menu().
File
- modules/
blog/ blog.module, line 106 - 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 {
if ($a === NULL) {
return blog_page_last();
}
}
}
drupal_not_found();
}