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

Diff of /contributions/modules/og_collections/og_collections.module

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

revision 1.2.2.6, Sat Apr 5 20:22:31 2008 UTC revision 1.2.2.7, Sat Apr 5 20:30:34 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_collections.module,v 1.2.2.5 2008/03/27 06:14:15 sdboyer Exp $  // $Id: og_collections.module,v 1.2.2.6 2008/04/05 20:22:31 sdboyer Exp $
3    
4  /**  /**
5   * @file og_collections.module   * @file og_collections.module
# Line 254  function og_collections_group_types($def Line 254  function og_collections_group_types($def
254  function og_collections_admin_collectioncfg($type) {  function og_collections_admin_collectioncfg($type) {
255    $group_types = og_collections_group_types(TRUE);    $group_types = og_collections_group_types(TRUE);
256    drupal_set_title("'". $group_types[$type] ."' Collection");    drupal_set_title("'". $group_types[$type] ."' Collection");
257    if (mysql_num_fields(db_query("SELECT * FROM {og_collections} WHERE grouptype = 'default'")) == 1) {    $result = db_fetch_array(db_query("SELECT * FROM {og_collections} WHERE grouptype = 'default'"));
258      if (count($result) < 3) {
259      drupal_set_message("You need to create at least one pre-configured panel for OG Collections to operate properly. Use this form to create your first one.");      drupal_set_message("You need to create at least one pre-configured panel for OG Collections to operate properly. Use this form to create your first one.");
260      drupal_get_destination();      drupal_get_destination();
261      drupal_goto('admin/og/og_collections/pcpanel/form');      drupal_goto('admin/og/og_collections/pcpanel/form');

Legend:
Removed from v.1.2.2.6  
changed lines
  Added in v.1.2.2.7

  ViewVC Help
Powered by ViewVC 1.1.2