function custompage_settings in Custom Page 7
Same name and namespace in other branches
- 6 custompage.admin.inc \custompage_settings()
@file custompage.admin.inc
1 string reference to 'custompage_settings'
- custompage_menu in ./
custompage.module - Implementation of hook_menu().
File
- ./
custompage.admin.inc, line 7 - custompage.admin.inc
Code
function custompage_settings() {
$form = array();
$form["custompage_inline_edit"] = array(
'#type' => 'checkbox',
'#title' => t('Enable Inline Edit'),
'#default_value' => variable_get("custompage_inline_edit", FALSE),
'#description' => t('This will enable an edit link on each tile to the editor of the specific resource (view, menu, block, etc.)'),
);
$form["custompage_theme_prefix"] = array(
'#type' => 'textfield',
'#title' => t('Theme Prefix'),
'#default_value' => variable_get("custompage_theme_prefix", ''),
'#description' => t('Configures the prefix to use on tpl files and theme functions. This should only contain alpha-numeric characters and underscores (don\'t use hyphens). For example, if you specify <em>custompage</em>, then your theme function will be <em>custompage_key</em> and your template will be <em>custompage-key.tpl.php</em>.'),
);
return system_settings_form($form);
}