You are here

function janrain_capture_profile_link in Janrain Registration 7

Same name and namespace in other branches
  1. 7.4 janrain_capture.module \janrain_capture_profile_link()
  2. 7.2 janrain_capture.module \janrain_capture_profile_link()
  3. 7.3 janrain_capture.module \janrain_capture_profile_link()

Returns a render array for the 'Edit profile' link for Janrain Capture.

1 call to janrain_capture_profile_link()
janrain_capture_ui_form_user_profile_form_alter in ./janrain_capture_ui.module
Implements hook_form_FROM_ID_alter().

File

./janrain_capture.module, line 361
This module implements authentication endpoints for Janrain Capture.

Code

function janrain_capture_profile_link() {
  $link = array(
    '#type' => 'link',
    '#title' => t('View / Edit Profile'),
    '#href' => 'janrain_capture/profile',
    '#options' => array(
      'absolute' => TRUE,
    ),
    '#attributes' => array(
      'class' => array(
        'janrain_capture_anchor',
      ),
    ),
  );
  return $link;
}