You are here

function filefield_source_imce_info in FileField Sources 7

Same name and namespace in other branches
  1. 6 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,
    'file' => 'sources/imce.inc',
  );
  return $source;
}