Community Documentation

blog_page

5 blog.module blog_page($a = NULL, $b = NULL)

Menu callback; displays a Drupal page containing recent blog entries.

File

modules/blog/blog.module, line 106
Enables keeping an easily and regularly updated web page or a blog.

Code

<?php
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();
}
?>
Login or register to post comments