function theme_signup_signups_closed in Signup 7
Same name and namespace in other branches
- 5.2 signup.module \theme_signup_signups_closed()
- 6.2 theme/node.inc \theme_signup_signups_closed()
- 6 theme/node.inc \theme_signup_signups_closed()
Controls the output displayed if this node is closed for signups.
Parameters
array $variables: An array of variables containing:
- 'node': The fully loaded node object.
- 'current_signup': If the user already signed up, an HTML representation of their current signup information, otherwise an empty string.
Return value
string Themed output to display for a node with closed signups.
See also
_signup_print_current_signup()
1 theme call to theme_signup_signups_closed()
- _signup_current_user_signup in includes/
node_output.inc - Helper function to generate the output for the current user's signup.
File
- theme/
node.inc, line 22 - Theme functions when viewing a signup-enabled node.
Code
function theme_signup_signups_closed($variables) {
$node = $variables['node'];
$current_signup = $variables['current_signup'];
$output = '<h3>' . t('Signups closed for this %node_type', array(
'%node_type' => node_type_get_name($node->type),
)) . '</h3>';
$output .= $current_signup;
return $output;
}