function glossify_admin_settings in Glossify 5
Same name and namespace in other branches
- 6.3 glossify.admin.inc \glossify_admin_settings()
- 6 glossify.admin.inc \glossify_admin_settings()
1 string reference to 'glossify_admin_settings'
File
- ./
glossify.module, line 22
Code
function glossify_admin_settings() {
$form['glossify_glossary_content_type'] = array(
'#type' => 'select',
'#title' => t('Content types holding glossary terms'),
'#multiple' => true,
'#options' => node_get_types('names'),
'#default_value' => variable_get('glossify_glossary_content_type', ''),
);
$form['glossify_content_types_to_search'] = array(
'#type' => 'select',
'#title' => t('Search the content of these types'),
'#multiple' => true,
'#options' => node_get_types('names'),
'#default_value' => variable_get('glossify_content_types_to_search', ''),
);
$form['glossify_link_first_only'] = array(
'#type' => 'checkbox',
'#title' => t('Only link first occurance of term'),
'#default_value' => variable_get('glossify_link_first_only', true),
);
$form['glossify_teaser'] = array(
'#type' => 'checkbox',
'#title' => t('Link content in teaser'),
'#default_value' => variable_get('glossify_teaser', true),
);
$form['glossify_style'] = array(
'#type' => 'select',
'#title' => t('Style of glossary terms'),
'#options' => array(
'hovertip' => t('Hovertips'),
'links' => t('Links'),
'reference' => t('Reference section under content'),
),
'#default_value' => variable_get('glossify_style', 'hovertip'),
'#description' => t('How the glossary should be styled. Note: "hovertip" style requires hovertip.module.'),
);
return system_settings_form($form);
}