You are here

function template_preprocess_filedepot_folder_moveoptions in filedepot 6

Same name and namespace in other branches
  1. 7 lib-theme.php \template_preprocess_filedepot_folder_moveoptions()

File

./lib-theme.php, line 232
lib-theme.php Theme support functions for the module

Code

function template_preprocess_filedepot_folder_moveoptions(&$variables) {
  $variables['LANG_moveup'] = t('Move Folder Up');
  $variables['LANG_movedown'] = t('Move Folder Down');
  if ($variables['order'] == 10) {
    $variables['hide_moveup'] = 'none';
  }
  else {
    $variables['hide_moveup'] = '';
  }
  if ($variables['order'] < $variables['maxorder']) {
    $variables['hide_movedown'] = '';
  }
  else {
    $variables['hide_movedown'] = 'none';
  }
}