function _signup_node_output in Signup 6.2
Same name and namespace in other branches
- 5.2 signup.module \_signup_node_output()
- 6 includes/node_output.inc \_signup_node_output()
- 7 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
$node: The fully loaded node object.
$type: The kind of output would we render: can be either 'node' or 'tab'.
Return value
The fully rendered HTML for all signup-related forms and info.
See also
3 calls to _signup_node_output()
- signup_nodeapi in ./
signup.module - Implementation of hook_nodeapi().
- signup_node_tab in includes/
node_output.inc - Page handler for the optional 'signup' tab on nodes.
- 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 30 - Code used to generate singup-related output when viewing nodes.
Code
function _signup_node_output($node, $type = 'node') {
$output = theme('signup_node_output_header', $node);
$output .= _signup_current_user_signup($node, $type);
return $output;
}