You are here

linkedin_auth.theme.inc in LinkedIn Integration 7

Same filename and directory in other branches
  1. 6 linkedin_auth/linkedin_auth.theme.inc

File

linkedin_auth/linkedin_auth.theme.inc
View source
<?php

/*
 * @file Overridable theme functions
 */

/*
 * Renders the "login using LinkedIn" block button
 * Possible displays are :
 * drupal_login_page
 * drupal_login_block
 * linkedin_login_block
 */

/**
 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function theme_linkedin_auth_display_login_block_button($variables) {
  $display = $variables['display'];
  $path = $variables['path'];
  $text = $variables['text'];
  drupal_add_css(drupal_get_path('module', 'linkedin_auth') . '/linkedin_auth.css');
  $data = l(t($text), $path);
  $class = 'linkedin-auth-login-link';
  if ($display) {
    $class .= '-' . str_replace('_', '-', $display);
  }
  $items[] = array(
    'data' => $data,
    'attributes' => array(
      'class' => $class,
    ),
  );
  return theme('item_list', array(
    'items' => $items,
  ));
}

Functions

Namesort descending Description
theme_linkedin_auth_display_login_block_button @todo Please document this function.