You are here

function fb_theme in Drupal for Facebook 7.4

Same name and namespace in other branches
  1. 6.3 fb.module \fb_theme()
  2. 7.3 fb.module \fb_theme()

Implements hook_theme().

File

./fb.module, line 487

Code

function fb_theme() {
  return array(
    // fb_markup renders connected_markup to connected users, otherwise not_connected_markup.
    'fb_markup' => array(
      'arguments' => array(
        'not_connected_markup' => NULL,
        'connected_markup' => '<fb:profile-pic linked=false uid=loggedinuser></fb:profile-pic>',
        'options' => NULL,
      ),
      'file' => 'fb.theme.inc',
    ),
    // fb_login_button renders login link. Default does not use fb:login-button.
    'fb_login_button' => array(
      'arguments' => array(
        'text' => 'Connect with Facebook',
        'onclick' => NULL,
        'scope' => NULL,
        'options' => NULL,
      ),
      'file' => 'fb.theme.inc',
    ),
  );
}