facebook_album.module in Facebook Album 8
File
facebook_album.module
View source
<?php
DEFINE('FACEBOOK_ALBUM_API_BASE_URL', 'https://graph.facebook.com/v2.5/');
DEFINE('FACEBOOK_ALBUM_API_AUTH_PATH', 'oauth/');
use Drupal\Core\Routing\RouteMatchInterface;
function facebook_album_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
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:
}
}
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,
),
),
);
}