
| Current Path : /var/www/html/ift/vendor/chi-teck/drupal-code-generator/templates/d7/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/vendor/chi-teck/drupal-code-generator/templates/d7/admin.inc.twig |
<?php
/**
* @file
* Admin page callbacks for the {{ name }} module.
*/
/**
* Form constructor for the main {{ name }} administration form.
*/
function {{ machine_name }}_settings_form($form, &$form_state) {
$form['{{ machine_name }}_setting_1'] = array(
'#type' => 'textfield',
'#title' => t('Setting 1'),
'#default_value' => variable_get('{{ machine_name }}_setting_1'),
);
$form['{{ machine_name }}_setting_2'] = array(
'#type' => 'select',
'#title' => t('Setting 1'),
'#options' => array(t('Option 1'), t('Option 2'), t('Option 3')),
'#default_value' => variable_get('{{ machine_name }}_setting_2'),
);
$form['{{ machine_name }}_setting_3'] = array(
'#type' => 'checkbox',
'#title' => t('Setting 3'),
'#default_value' => variable_get('{{ machine_name }}_setting_3'),
);
return system_settings_form($form);
}