function optimizely_theme in Optimizely 8
Same name and namespace in other branches
- 8.3 optimizely.module \optimizely_theme()
- 8.0 optimizely.module \optimizely_theme()
- 7.3 optimizely.module \optimizely_theme()
- 7.2 optimizely.module \optimizely_theme()
Implements hook_theme().
All of the template definitions. All related templates can be found in /template in the module folder. The template layout can be overridden by the site theme by copying these template files into theme directory.
File
- ./
optimizely.module, line 90 - Optimizely module.
Code
function optimizely_theme($existing, $type, $theme, $path) {
return [
'optimizely_account_settings_form' => [
'render element' => 'form',
'template' => 'optimizely-account-settings-form',
],
'optimizely_add_update_form' => [
'render element' => 'form',
'template' => 'optimizely-add-update-form',
],
];
}