function better_messages_admin_overview_form in Better Messages 7.2
Form builder for the main Better Messages overview page.
Return value
An array representing the form definition.
See also
better_messages_admin_overview_form_submit()
theme_better_messages_admin_overview_list()
1 string reference to 'better_messages_admin_overview_form'
- better_messages_menu in ./
better_messages.module - Implements hook_menu().
File
- ./
better_messages.admin.inc, line 12
Code
function better_messages_admin_overview_form() {
$skins = _better_messages_get_settings(null, TRUE);
$form = array();
$options = array();
foreach ($skins as $skin => $skins_settings) {
$options[$skin] = '';
$form['name'][$skin] = array(
'#markup' => check_plain($skins_settings['admin']['title']),
);
}
$form['default_skin'] = array(
'#type' => 'radios',
'#title' => t('Default skin'),
'#title_display' => 'invisible',
'#options' => $options,
'#default_value' => variable_get('better_messages_default'),
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
$form['#theme'] = 'better_messages_admin_overview_list';
return $form;
}