function textimage_settings_form in Textimage 7.2
Same name and namespace in other branches
- 5.2 textimage_admin.inc \textimage_settings_form()
- 5 textimage.module \textimage_settings_form()
- 6.2 textimage_admin.inc \textimage_settings_form()
Todo.
1 string reference to 'textimage_settings_form'
- textimage_menu in ./
textimage.module - Implements hook_menu().
File
- ./
textimage.admin.inc, line 10 - Textimage admin page callback
Code
function textimage_settings_form() {
$form = array();
$fonts_path = variable_get('textimage_fonts_path', drupal_get_path('module', 'textimage') . '/fonts');
$form['fonts'] = array(
'#type' => 'fieldset',
'#title' => t('Fonts'),
'#description' => t('Number of fonts found: @fonts', array(
'@fonts' => count(_textimage_font_list($fonts_path)),
)),
);
$form['fonts']['textimage_fonts_path'] = array(
'#type' => 'textfield',
'#title' => t('Path'),
'#default_value' => $fonts_path,
'#maxlength' => 255,
'#description' => t('Location of the directory where the TrueType (.ttf) or OpenType (.otf) fonts are stored.') . '<br />' . t('Relative paths will be resolved relative to the Drupal installation directory.'),
);
$images_path = variable_get('textimage_images_path', drupal_get_path('module', 'textimage') . '/backgrounds');
$form['images'] = array(
'#type' => 'fieldset',
'#title' => t('Background images'),
'#description' => t('Number of background images found: @images', array(
'@images' => count(_textimage_image_list($images_path)),
)),
);
$form['images']['textimage_images_path'] = array(
'#type' => 'textfield',
'#title' => t('Path'),
'#default_value' => $images_path,
'#maxlength' => 255,
'#description' => t('Location of the directory where the background images are stored. Images in this directory can be overlaid with dynamic text in a preset.') . '<br />' . t('Relative paths will be resolved relative to the Drupal installation directory.'),
);
return system_settings_form($form);
}