You are here

facebook_album.module in Facebook Album 8

File

facebook_album.module
View source
<?php

/**
 * @file
 * Contains facebook_album.module..
 */
DEFINE('FACEBOOK_ALBUM_API_BASE_URL', 'https://graph.facebook.com/v2.5/');
DEFINE('FACEBOOK_ALBUM_API_AUTH_PATH', 'oauth/');
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function facebook_album_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the facebook_album module.
    case 'help.page.facebook_album':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Adds a block for viewing Facebook albums') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function facebook_album_theme() {
  return array(
    'facebook_album_covers' => array(
      'variables' => array(
        'settings' => NULL,
        'photos' => NULL,
      ),
    ),
    'facebook_album_photos' => array(
      'variables' => array(
        'settings' => NULL,
        'photos' => NULL,
      ),
    ),
  );
}

Functions

Namesort descending Description
facebook_album_help Implements hook_help().
facebook_album_theme Implements hook_theme().