function content_sync_theme in Content Synchronization 8.2
Same name and namespace in other branches
- 8 content_sync.module \content_sync_theme()
- 3.0.x content_sync.module \content_sync_theme()
Implements hook_theme().
File
- ./
content_sync.module, line 110 - Allows site administrators to modify content.
Code
function content_sync_theme() {
$info = [
'content_sync_help' => [
'variables' => [
'info' => [],
],
],
'content_sync_message' => [
'render element' => 'element',
],
];
// Since any rendering of a content_sync is going to require
// 'content_sync.theme.inc' we are going to just add it to every template.
foreach ($info as &$template) {
$template['file'] = 'includes/content_sync.theme.inc';
}
return $info;
}