You are here

function template_preprocess_filedepot_toolbar_form in filedepot 7

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

@file lib-theme.php Theme support functions for the module

File

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

Code

function template_preprocess_filedepot_toolbar_form(&$variables) {
  global $base_url;
  $variables['report_option'] = 'latestfiles';
  $variables['base_url'] = $base_url;
  if (!isset($_GET['cid'])) {
    $_GET['cid'] = 0;
  }
  if (intval($_GET['cid']) > 0) {
    $variables['current_category'] = intval($_GET['cid']);
  }
}