function asset_import_admin_settings in Asset 5
Same name and namespace in other branches
- 5.2 contrib/asset_import/asset_import.module \asset_import_admin_settings()
- 6 contrib/asset_import/asset_import.module \asset_import_admin_settings()
- 6 asset_import/inc/asset_import.admin.inc \asset_import_admin_settings()
1 string reference to 'asset_import_admin_settings'
- asset_import_menu in asset_import/
asset_import.module - Implementation of hook_menu().
File
- asset_import/
asset_import.module, line 238
Code
function asset_import_admin_settings() {
$form['asset_import_path'] = array(
'#type' => 'textfield',
'#title' => t('Import path'),
'#default_value' => variable_get('asset_import_path', file_directory_path()),
'#after_build' => array(
'_asset_import_settings_check_directory',
),
'#description' => t("The directory to import assets 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);
}