You are here

function shoutbox_page_view in Shoutbox 6

Same name and namespace in other branches
  1. 5 shoutbox.module \shoutbox_page_view()

Show paged view of full list of shouts.

1 string reference to 'shoutbox_page_view'
shoutbox_menu in ./shoutbox.module
Implementation of hook_menu().

File

./shoutbox.module, line 205
shoutbox module displays a block for users to create short messages for thw whole site. Uses AHAH to update the database and display content.

Code

function shoutbox_page_view() {
  drupal_add_css(drupal_get_path('module', 'shoutbox') . '/shoutbox.css');

  // Output the existing shoutbox posts.
  $shoutbox_posts_data = _shoutbox_display_posts(20, TRUE, TRUE);
  $output .= theme('table', array(), $shoutbox_posts_data['rows']);
  $output .= theme('pager', NULL, 3, 0);
  return $output;
}