You are here

function shoutbox_js_view in Shoutbox 5

Same name and namespace in other branches
  1. 6.2 shoutbox.module \shoutbox_js_view()
  2. 6 shoutbox.module \shoutbox_js_view()
  3. 7.2 shoutbox.module \shoutbox_js_view()
  4. 7 shoutbox.module \shoutbox_js_view()

Javascript callback. Prints out shouts only.

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

File

./shoutbox.module, line 181
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_js_view() {
  $show_amount = variable_get('shoutbox_showamount', '20');
  $shoutbox_posts_data = _shoutbox_display_posts($show_amount, FALSE);
  $output = $shoutbox_posts_data['output'];
  print $output;
}