/[drupal]/contributions/modules/og_vocab/og_vocab.module
ViewVC logotype

Diff of /contributions/modules/og_vocab/og_vocab.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.18.2.20, Wed Feb 18 10:39:11 2009 UTC revision 1.18.2.21, Tue May 5 12:13:02 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_vocab.module,v 1.18.2.19 2009/02/18 09:36:43 amitaibu Exp $  // $Id: og_vocab.module,v 1.18.2.18 2009/01/23 09:56:17 amitaibu Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 326  function og_vocab_form_taxonomy_form_ter Line 326  function og_vocab_form_taxonomy_form_ter
326    if ($vocab->module == 'og_vocab') {    if ($vocab->module == 'og_vocab') {
327      unset($form['advanced']['synonyms']);      unset($form['advanced']['synonyms']);
328    }    }
329    if (!empty($form['delete'])) {    $item = menu_get_item();
330      if (strpos($item['path'], 'node/%/og/vocab/terms') === 0) {
331      // This is edit term, so redirect back to og_vocab tab.      // This is edit term, so redirect back to og_vocab tab.
     $item = menu_get_item();  
332      $form['#redirect'] = 'node/'.  $item['map'][1]->nid .'/og/vocab';      $form['#redirect'] = 'node/'.  $item['map'][1]->nid .'/og/vocab';
333      if (!empty($form['actions']['cancel'])) {      if (!empty($form['actions']['cancel'])) {
334        _og_vocab_redirect_cancel_to_og_vocab($form, $item);        _og_vocab_redirect_cancel_to_og_vocab($form, $item);

Legend:
Removed from v.1.18.2.20  
changed lines
  Added in v.1.18.2.21

  ViewVC Help
Powered by ViewVC 1.1.2