X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Flayouter%2Fmodules%2Flayouter_extension_example%2Flayouter_extension_example.module;fp=web%2Fmodules%2Fcontrib%2Flayouter%2Fmodules%2Flayouter_extension_example%2Flayouter_extension_example.module;h=194892bb8917eaee5aadefc05a998e43cc590b59;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/layouter/modules/layouter_extension_example/layouter_extension_example.module b/web/modules/contrib/layouter/modules/layouter_extension_example/layouter_extension_example.module new file mode 100644 index 000000000..194892bb8 --- /dev/null +++ b/web/modules/contrib/layouter/modules/layouter_extension_example/layouter_extension_example.module @@ -0,0 +1,51 @@ + [ + 'title' => t('Single column of text 500px wide'), + 'fields' => [ + 'text' => [ + 'type' => 'text', + 'title' => t('Your text'), + 'description' => t('This text will be 500px wide.'), + ], + ], + 'theme' => 'layouter_extension_example_one_column_width_500', + ], + ]; + + return $templates; +} + +/** + * Implements hook_theme(). + */ +function layouter_extension_example_theme($existing, $type, $theme, $path) { + return [ + 'layouter_extension_example_one_column_width_500' => [ + 'variables' => ['text' => NULL], + 'template' => 'one_column_width_500', + ], + ]; +}