function simple_instagram_feed_block_view in Simple Instagram Feed Block 7
Implements hook_block_view().
File
- ./
simple_instagram_feed.module, line 213 - Drupal Module: Simple Instagram Feed.
Code
function simple_instagram_feed_block_view($delta = '') {
if ($delta == 'simple_instagram_block') {
$path = drupal_get_path('module', 'simple_instagram_feed');
$block = [
'subject' => t('Block title'),
'content' => [
'#markup' => '<div class="instagram-feed"></div>',
'#attached' => [
'css' => [
'data' => $path . '/css/simple_instagram_feed.css',
],
'js' => [
'data' => $path . '/js/simple_instagram_feed.js',
],
'libraries_load' => [
[
'jqueryinstagramfeed',
],
],
],
],
];
return $block;
}
}