text_with_title.module in Text with Title Field 8
Main module file for text_with_title field.
File
text_with_title.moduleView source
<?php
/**
* @file
* Main module file for text_with_title field.
*/
/**
* Implements hook_theme().
*/
function text_with_title_theme($existing, $type, $theme, $path) {
return [
'text_with_title_accordion' => [
'variables' => [
'panels' => [],
'id' => NULL,
],
'template' => 'text-with-title-accordion',
],
'text_with_title_tabs' => [
'variables' => [
'tabs' => [],
],
'template' => 'text-with-title-tabs',
],
'text_with_title_tabs_horizontal' => [
'variables' => [
'tabs' => [],
],
'template' => 'text-with-title-tabs-horizontal',
],
'text_with_title_tabs_vertical' => [
'variables' => [
'tabs' => [],
'tabs_width' => [],
],
'template' => 'text-with-title-tabs-vertical',
],
'text_with_title_panel' => [
'variables' => [
'attributes' => [],
'body' => [],
'body_attributes' => [],
'collapsible' => FALSE,
'collapsed' => FALSE,
'description' => NULL,
'description_display' => 'before',
'footer' => NULL,
'footer_attributes' => [],
'heading' => NULL,
'heading_attributes' => [],
'id' => NULL,
'panel_type' => 'default',
'target' => NULL,
],
'template' => 'text-with-title-panel',
],
];
}
Functions
Name | Description |
---|---|
text_with_title_theme | Implements hook_theme(). |