Index: profiles/drupalorg_testing/drupalorg_testing.profile =================================================================== RCS file: /cvs/drupal-contrib/contributions/profiles/drupalorg_testing/drupalorg_testing.profile,v retrieving revision 1.18 diff -u -p -r1.18 drupalorg_testing.profile --- profiles/drupalorg_testing/drupalorg_testing.profile 19 Jul 2007 20:08:35 -0000 1.18 +++ profiles/drupalorg_testing/drupalorg_testing.profile 19 Jul 2007 21:03:34 -0000 @@ -619,6 +619,34 @@ The first case is especially useful for db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $node->nid, $category); } } + + // Setup some other projects under "Drupal project" that aren't in CVS. + $values = array(); + $values[] = array( + 'title' => t('Drupal.org webmasters'), + 'body' => t('Drupal mailing lists, web site, forums, etc.') ."\n\n". + t('A project with issue tracker that you can use to report spam, broken links, user account problems, or outdated documentation.') ."\n\n". + t('If you want to report a problem with the Apache and MySQL installation on drupal.org, the Mailman mailing lists, the CVS repositories, and the various Drupal installations on the drupal.org domain, please use the Drupal.org infrastructure project instead.', array('@url' => url('project/infrastructure'))) ."\n", + 'uri' => 'webmasters', + 'name' => 'a', + ); + $values[] = array( + 'title' => t('Drupal.org infrastructure'), + 'body' => t('An issue tracker for everything related to the Drupal.org servers. This includes the Apache and MySQL installation, the Mailman mailing lists, the CVS repositories, and the various Drupal installations on the drupal.org domain.') ."\n\n". + t('If you want to report spam, broken links, user account problems, or outdated documentation, please use the Drupal.org webmasters issue tracker instead.', array('@url' => url('project/webmasters'))) ."\n", + 'uri' => 'infrastructure', + 'name' => 'a', + ); + $drupal_tid = _drupalorg_testing_get_tid_by_term(t('Drupal project')); + foreach ($values as $project) { + $project['project_type'] = $drupal_tid; + $project['mail'] = variable_get('site_mail', 'a@a.a'); + drupal_execute('project_project_node_form', $project, array('type' => 'project_project')); + // EVIL, for some reason drupal_execute() isn't hitting the full + // nodeapi code, so we have to manually save the taxonomy terms. + $node = node_load(array('title' => $project['title'])); + _project_db_save_taxonomy($node->nid, $drupal_tid); + } } /**