You are here

function filefield_source_imce_info in FileField Sources 6

Same name and namespace in other branches
  1. 7 sources/imce.inc \filefield_source_imce_info()

Implements hook_filefield_source_info().

File

sources/imce.inc, line 15
A FileField extension to allow referencing of files from IMCE.

Code

function filefield_source_imce_info() {
  $source = array();
  if (!module_exists('imce') || !imce_access()) {
    return $source;
  }
  $source['imce'] = array(
    'name' => t('IMCE file browser'),
    'label' => t('File browser'),
    'description' => t('Select a file to use from a file browser.'),
    'process' => 'filefield_source_imce_process',
    'value' => 'filefield_source_imce_value',
    'weight' => -1,
  );
  return $source;
}