function filefield_sources_field_widget_info_alter in FileField Sources 7
A list of settings needed by FileField Sources module on widgets.
File
- ./
filefield_sources.module, line 71 - Extend FileField to allow files from multiple sources.
Code
function filefield_sources_field_widget_info_alter(&$info) {
$settings = array(
'filefield_sources' => array(),
);
foreach (module_invoke_all('filefield_sources_widgets') as $widget) {
$params = array(
'save',
$widget,
);
$widget_settings = array_merge($settings, filefield_sources_invoke_all('settings', $params));
if (isset($info[$widget])) {
$info[$widget]['settings']['filefield_sources'] = $widget_settings;
}
}
}