You are here

function theme_signup_anonymous_user_login_text in Signup 7

Same name and namespace in other branches
  1. 5.2 signup.module \theme_signup_anonymous_user_login_text()
  2. 6.2 theme/node.inc \theme_signup_anonymous_user_login_text()
  3. 6 theme/node.inc \theme_signup_anonymous_user_login_text()

Controls the output for anonymous users who can't signup.

Parameters

array $variables: An array of variables containing:

  • 'anon_login_text': The translated HTML help text telling users to login (and if allowed on this site, register) so they can signup, including login/register links.

Return value

string The themed HTML to display the login (and maybe register) help text.

1 theme call to theme_signup_anonymous_user_login_text()
_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 43
Theme functions when viewing a signup-enabled node.

Code

function theme_signup_anonymous_user_login_text($variables) {
  if (!empty($variables['anon_login_text'])) {
    return '<div class="signup_anonymous_login">' . $variables['anon_login_text'] . '</div>';
  }
}