You are here

function gdpr_tasks_theme in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_tasks/gdpr_tasks.module \gdpr_tasks_theme()
  2. 7 modules/gdpr_tasks/gdpr_tasks.module \gdpr_tasks_theme()
  3. 3.0.x modules/gdpr_tasks/gdpr_tasks.module \gdpr_tasks_theme()

Implements hook_theme().

File

modules/gdpr_tasks/gdpr_tasks.module, line 18
Module file for the GDPR Tasks module.

Code

function gdpr_tasks_theme() {
  $theme = [];
  $theme['gdpr_task'] = [
    'render element' => 'elements',
    'file' => 'gdpr_tasks.pages.inc',
    'template' => 'gdpr_task',
  ];
  $theme['gdpr_task_content_add_list'] = [
    'render element' => 'content',
    'variables' => [
      'content' => NULL,
    ],
    'file' => 'gdpr_tasks.pages.inc',
  ];
  return $theme;
}