4 * Contains hook implementations.
6 * @see hook_form_alter().
7 * @see hook_layouter_templates_info().
12 * Implements hook_form_alter().
14 function layouter_extension_example_form_alter(&$form, &$form_state, $form_id) {
15 if ($form_id == 'layouter_multistep_form') {
16 $form['#attached']['library'][] = 'layouter_extension_example/css';
21 * Implements hook_layouter_templates_info().
23 function layouter_extension_example_layouter_templates_info() {
25 'one_column_width_500' => [
26 'title' => t('Single column of text 500px wide'),
30 'title' => t('Your text'),
31 'description' => t('This text will be 500px wide.'),
34 'theme' => 'layouter_extension_example_one_column_width_500',
42 * Implements hook_theme().
44 function layouter_extension_example_theme($existing, $type, $theme, $path) {
46 'layouter_extension_example_one_column_width_500' => [
47 'variables' => ['text' => NULL],
48 'template' => 'one_column_width_500',