You are here

function fbconnect_prompt_page in Facebook Connect 5

Same name and namespace in other branches
  1. 6.2 fbconnect.pages.inc \fbconnect_prompt_page()
  2. 6 fbconnect.pages.inc \fbconnect_prompt_page()
1 string reference to 'fbconnect_prompt_page'
fbconnect_menu in ./fbconnect.module
Implementation of hook_menu().

File

./fbconnect.module, line 163
This module allows site visitors to connect and register with facebook account

Code

function fbconnect_prompt_page() {
  $reg_msg = t('Don\'t have a account? Create an account now');
  $link_msg = t('I already have an account, I\'d like to use Facebook Connect features.');
  if (module_exists('fbconnect_profile') && !variable_get('fbconnect_fast_reg', NULL)) {
    $step = 'import';
  }
  else {
    $step = 'create';
  }
  $reg_choice = l($reg_msg, 'fbconnect/register/' . $step);
  $link_choice = l($link_msg, 'user', array(), 'destination=fbconnect');
  $output = theme('box', NULL, $reg_choice);
  $output .= theme('box', NULL, $link_choice);
  return $output;
}