You are here

function fbconnect_prompt_page_links in Facebook Connect 6.2

Same name and namespace in other branches
  1. 6 fbconnect.pages.inc \fbconnect_prompt_page_links()

@todo.

1 call to fbconnect_prompt_page_links()
fbconnect_prompt_page in ./fbconnect.pages.inc
Menu callback. Called when user perform facebook registration

File

./fbconnect.pages.inc, line 25
User pages callbacks for the fbconnect module.

Code

function fbconnect_prompt_page_links() {
  $conf = fbconnect_get_config();
  $params = array(
    '!site_name' => $conf['invite_name'],
  );
  $reg_msg = t('Click here to create a new !site_name account with Facebook', $params);
  $link_msg = t('Click here to connect your existing !site_name account with Facebook', $params);
  $reg_attr = array();
  if ($conf['fast_reg_mode']) {
    $reg_attr = array(
      'attributes' => array(
        'onclick' => 'Drupal.fbconnect.DoFastRegistration(this); return false;',
      ),
    );
  }
  $reg_choice = l($reg_msg, 'fbconnect/register/create', $reg_attr);
  $link_choice = l($link_msg, 'user', array(
    'query' => 'destination=fbconnect/link',
  ));
  return array(
    $reg_choice,
    $link_choice,
  );
}