You are here

function _signup_node_output in Signup 7

Same name and namespace in other branches
  1. 5.2 signup.module \_signup_node_output()
  2. 6.2 includes/node_output.inc \_signup_node_output()
  3. 6 includes/node_output.inc \_signup_node_output()

Generate all the signup-related output for a given node.

Because of the global setting to control if the signup details and form appear at the bottom of the node or on a separate tab, this function is shared by multiple callers.

@todo This needs to be much more theme-friendly.

Parameters

stdClass $node: The fully loaded node object.

string $type: The kind of output would we render: can be either 'node' or 'tab'.

Return value

string The fully rendered HTML for all signup-related forms and info.

See also

signup_nodeapi()

signup_node_tab()

3 calls to _signup_node_output()
signup_node_tab in includes/node_output.inc
Page handler for the optional 'signup' tab on nodes.
signup_node_view in ./signup.module
Implements hook_node_view().
signup_panels_content_signup_form in panels/content_types/signup_form.inc
Render a pane of the 'signup form' content type.

File

includes/node_output.inc, line 28
Code used to generate singup-related output when viewing nodes.

Code

function _signup_node_output($node, $type = 'node') {
  $output = theme('signup_node_output_header', array(
    'node' => $node,
  ));
  $output .= _signup_current_user_signup($node, $type);
  return $output;
}