function twitter_profile_widget_theme in Twitter Profile Widget 3.x
Same name and namespace in other branches
- 8.2 twitter_profile_widget.module \twitter_profile_widget_theme()
- 8 twitter_profile_widget.module \twitter_profile_widget_theme()
- 6 twitter_profile_widget.module \twitter_profile_widget_theme()
- 7 twitter_profile_widget.module \twitter_profile_widget_theme()
Implements hook_theme().
File
- ./
twitter_profile_widget.module, line 40 - Contains twitter_profile_widget.module.
Code
function twitter_profile_widget_theme() {
// Define a template path for individual feed items.
return [
'twitter_profile_widget' => [
'template' => 'twitter-profile-widget',
'variables' => [
'headline' => NULL,
'tweets' => NULL,
'view_all' => NULL,
],
],
];
}