You are here

function asset_import_admin_settings in Asset 6

Same name in this branch
  1. 6 contrib/asset_import/asset_import.module \asset_import_admin_settings()
  2. 6 asset_import/inc/asset_import.admin.inc \asset_import_admin_settings()
Same name and namespace in other branches
  1. 5.2 contrib/asset_import/asset_import.module \asset_import_admin_settings()
  2. 5 asset_import/asset_import.module \asset_import_admin_settings()
2 string references to 'asset_import_admin_settings'
asset_import_menu in asset_import/asset_import.module
Implementation of hook_menu().
asset_import_menu in contrib/asset_import/asset_import.module
Implementation of hook_menu().

File

contrib/asset_import/asset_import.module, line 241

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() . '/images/import'),
    '#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);
}