function facebook_album_block_view in Facebook Album 7.2
Same name and namespace in other branches
- 7.3 facebook_album.module \facebook_album_block_view()
- 7 facebook_album.module \facebook_album_block_view()
Implements hook_block_view().
File
- ./
facebook_album.module, line 298
Code
function facebook_album_block_view($delta = '') {
$block = array();
$app_token = variable_get('facebook_album_access_token');
if (!isset($app_token)) {
return $block;
}
switch ($delta) {
case 'facebook_album':
$block['content'] = array(
'#markup' => '<div id="facebook-album"><div id="fb-album-header"></div>' . '<div id="facebook-album-images-container"></div>' . '<div class="fb-loading-icon"></div></div>',
'#attached' => array(
'css' => array(
drupal_get_path('module', 'facebook_album') . '/css/facebook_album.css',
),
'js' => array(
drupal_get_path('module', 'facebook_album') . '/js/facebook_album.js',
array(
'data' => array(
'facebookAlbum' => array(
'colorboxOptions' => variable_get('facebook_album_colorboxOptions', ''),
),
),
'type' => 'setting',
),
),
),
);
break;
}
return $block;
}