You are here

function fiu_filefield_sources_list in Fine Image Upload 8

Same name and namespace in other branches
  1. 8.2 fiu.module \fiu_filefield_sources_list()

Override filefield_sources_list theme.

1 string reference to 'fiu_filefield_sources_list'
fiu_theme_registry_alter in ./fiu.module
Implements hook_theme_registry_alter().

File

./fiu.module, line 58

Code

function fiu_filefield_sources_list($variables) {
  $element = $variables['element'];
  $sources = $variables['sources'];
  $links = array();
  foreach ($sources as $name => $source) {
    $links[] = '<a href="#" onclick="return false;" title="' . $source['description'] . '" id="' . $element['#id'] . '-' . $name . '-source" class="filefield-source filefield-source-' . $name . '">' . $source['label'] . '</a>';
  }
  return '<div class="filefield-sources-list">' . implode('', $links) . '</div>';
}