function facebook_album_block_view in Facebook Album 7
Same name and namespace in other branches
- 7.3 facebook_album.module \facebook_album_block_view()
- 7.2 facebook_album.module \facebook_album_block_view()
Implements hook_block_view().
File
- ./
facebook_album.module, line 51 - facebook_album.module
Code
function facebook_album_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'facebook_album':
$block['content'] = array(
'#markup' => '<div id="facebook-album"></div>',
'#attached' => array(
'css' => array(
drupal_get_path('module', 'facebook_album') . '/css/facebook_album.css',
),
'js' => array(
array(
'data' => '//connect.facebook.net/en_US/all.js',
'type' => 'external',
),
drupal_get_path('module', 'facebook_album') . '/js/facebook_album.js',
array(
'data' => array(
'facebookAlbum' => facebook_album_get_settings(),
),
'type' => 'setting',
),
),
),
);
break;
}
return $block;
}