You are here

function options_default_sort in Filebrowser 8

1 string reference to 'options_default_sort'
field.field.node.field_default_sort.yml in config/install/field.field.node.field_default_sort.yml
config/install/field.field.node.field_default_sort.yml

File

./filebrowser.module, line 1063
Validates file path input on node form

Code

function options_default_sort() {
  $sortable = array();
  $cols = _filebrowser_externals('metadata_info');

  // TODO: we should check if it is sortable
  foreach ($cols as $name => $data) {
    $sortable[$name] = $data['title'];
  }
  return $sortable;
}