Merge pull request #1690 from drshawnkwang/drupal_fix-ahahformcancel

Drupal: Fix bug where Cancel link in AHAH form
This commit is contained in:
tristanolive 2016-10-27 10:30:20 -04:00 committed by GitHub
commit 5040694dfb
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ function boincwork_generalprefs_form(&$form_state, $venue, $prefs_preset = null,
'#suffix' => '</li>'
);
$form['prefs']['form control tabs'] = array(
'#value' => '<li class="tab">' . l(bts('Cancel'), $_GET['q']) . '</li>'
'#value' => '<li class="tab">' . l(bts('Cancel'), drupal_get_path_alias("account/prefs/computing/edit")) . '</li>'
);
if ($venue AND $venue != 'generic') {
global $base_path;