| 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 |
| 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'); |