function image_import_admin_settings in Image 5.2
Same name and namespace in other branches
- 5 contrib/image_import/image_import.module \image_import_admin_settings()
- 6 contrib/image_import/image_import.admin.inc \image_import_admin_settings()
- 7 contrib/image_import/image_import.admin.inc \image_import_admin_settings()
1 string reference to 'image_import_admin_settings'
- image_import_menu in contrib/
image_import/ image_import.module - Implementation of hook_menu().
File
- contrib/
image_import/ image_import.module, line 218
Code
function image_import_admin_settings() {
$form['image_import_path'] = array(
'#type' => 'textfield',
'#title' => t('Import path'),
'#default_value' => variable_get('image_import_path', file_directory_path() . '/images/import'),
'#after_build' => array(
'_image_import_settings_check_directory',
),
'#description' => t("The directory to import image nodes from. Drupal will need to have write access to this directory so we can move the file.") . '<br />' . t("<strong>Note:</strong> a path begining with a <kbd>/</kbd> indicates the path is relative to the server's root, not the website's root. One starting without a <kbd>/</kbd> specifies a path relative to Drupal's root. For example: <kbd>/tmp/image</kbd> would be the temp directory off the root while <kbd>tmp/image</kbd> would be inside Drupal's directory."),
'#required' => TRUE,
);
return system_settings_form($form);
}