You are here

function optimizely_theme in Optimizely 8

Same name and namespace in other branches
  1. 8.3 optimizely.module \optimizely_theme()
  2. 8.0 optimizely.module \optimizely_theme()
  3. 7.3 optimizely.module \optimizely_theme()
  4. 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',
    ],
  ];
}