function socialfeed_theme in Social Feed 7.2
Same name and namespace in other branches
- 8 socialfeed.module \socialfeed_theme()
- 6 socialfeed.module \socialfeed_theme()
- 7 socialfeed.module \socialfeed_theme()
Implements hook_theme().
File
- ./
socialfeed.module, line 79 - Provide Facebook, Twitter and Instagram.
Code
function socialfeed_theme($existing, $type, $theme, $path) {
return [
'socialfeed_facebook' => [
'variables' => [
'facebook' => NULL,
],
'template' => 'facebook',
'path' => drupal_get_path('module', 'socialfeed') . '/templates',
],
'socialfeed_twitter' => [
'variables' => [
'twitter' => NULL,
],
'template' => 'twitter',
'path' => drupal_get_path('module', 'socialfeed') . '/templates',
],
'socialfeed_instagram' => [
'variables' => [
'instagram' => NULL,
],
'template' => 'instagram',
'path' => drupal_get_path('module', 'socialfeed') . '/templates',
],
];
}