You are here

function conditional_fields_theme in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 conditional_fields.module \conditional_fields_theme()
  2. 6.2 conditional_fields.module \conditional_fields_theme()
  3. 6 conditional_fields.module \conditional_fields_theme()
  4. 7.3 conditional_fields.module \conditional_fields_theme()

Implements hook_theme().

File

./conditional_fields.module, line 36
Contains conditional_fields.module.

Code

function conditional_fields_theme() {
  $theme = [];
  $theme['conditional_field'] = [
    'render element' => 'elements',
    'file' => 'conditional_field.page.inc',
    'template' => 'conditional_field',
  ];
  $theme['conditional_field_content_add_list'] = [
    'render element' => 'content',
    'variables' => [
      'content' => NULL,
    ],
    'file' => 'conditional_field.page.inc',
  ];
  return $theme;
}