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

Diff of /contributions/modules/og_content_type_admin/og_content_type_admin.module

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

revision 1.15.2.6, Fri Nov 28 00:35:08 2008 UTC revision 1.15.2.7, Fri Nov 28 17:27:56 2008 UTC
# Line 16  Line 16 
16   * were marked as 'required' by the site admin will always be usable by the group members and   * were marked as 'required' by the site admin will always be usable by the group members and
17   * cannot be deactivated by the group owner.</p>   * cannot be deactivated by the group owner.</p>
18   *   *
19   * @version $Id: og_content_type_admin.module,v 1.15.2.3 2008/10/15 11:14:40 paulbooker Exp $;   * @version $Id: og_content_type_admin.module,v 1.15.2.6 2008/11/28 00:35:08 paulbooker Exp $;
20   * @package OG_CTA   * @package OG_CTA
21   * @category NeighborForge   * @category NeighborForge
22   * @author Ryan Constantine   * @author Ryan Constantine
# Line 68  Group owners can then activate or deacti Line 68  Group owners can then activate or deacti
68  } // function og_content_type_admin_help()  } // function og_content_type_admin_help()
69    
70  /**  /**
71     * Implementation of hook_init().
72     */
73    function og_content_type_admin_init() {
74     drupal_flush_all_caches();
75    }
76    
77    
78    /**
79   * Implementation of hook_perm   * Implementation of hook_perm
80   *   *
81   * Valid permissions for this module   * Valid permissions for this module
# Line 77  function og_content_type_admin_perm() { Line 85  function og_content_type_admin_perm() {
85    return array('administer og content types');    return array('administer og content types');
86  } // function og_content_type_admin_perm()  } // function og_content_type_admin_perm()
87    
   
 function og_content_type_admin_flush_all_caches() {  
   drupal_flush_all_caches();  
 }  
   
88  /**  /**
89   * Implementation of hook_menu   * Implementation of hook_menu
90   *   *
# Line 246  function og_content_type_admin_main_subm Line 249  function og_content_type_admin_main_subm
249      drupal_set_message(t('The group has been added.'));      drupal_set_message(t('The group has been added.'));
250    }    }
251    $form_state['redirect'] = 'admin/og/og_content_types';    $form_state['redirect'] = 'admin/og/og_content_types';
   og_content_type_admin_flush_all_caches();  
252  } //function og_content_type_admin_main_submit()  } //function og_content_type_admin_main_submit()
253    
254  /**  /**
# Line 321  function og_content_type_admin_confirm_d Line 323  function og_content_type_admin_confirm_d
323      watchdog('content', t('og_content_type_admin: deleted %gid.', array('%gid' => $form_values['name'])));      watchdog('content', t('og_content_type_admin: deleted %gid.', array('%gid' => $form_values['name'])));
324    }    }
325    $form_state['redirect'] = 'admin/og/og_content_types';    $form_state['redirect'] = 'admin/og/og_content_types';
   og_content_type_admin_flush_all_caches();  
326  } // function og_content_type_admin_confirm_delete_submit()  } // function og_content_type_admin_confirm_delete_submit()
327    
328  /**  /**
# Line 534  function og_content_type_admin_admin_sub Line 535  function og_content_type_admin_admin_sub
535    else {    else {
536      drupal_set_message(t('The changes have been saved. The group owner must now activate content types for them to be used in that group.'));      drupal_set_message(t('The changes have been saved. The group owner must now activate content types for them to be used in that group.'));
537    }    }
   og_content_type_admin_flush_all_caches();  
538  } //function og_content_type_admin_admin_submit()  } //function og_content_type_admin_admin_submit()
539    
540  /**  /**

Legend:
Removed from v.1.15.2.6  
changed lines
  Added in v.1.15.2.7

  ViewVC Help
Powered by ViewVC 1.1.2