diff --git a/modules/drupal.module b/modules/drupal.module index 18d89b4d088926913df880bc0b781f5da61493c4..031a95e5c8e9299876d844dd623ebf260196e9e3 100644 --- a/modules/drupal.module +++ b/modules/drupal.module @@ -32,14 +32,14 @@ function drupal_help($section) { <li>administer Drupal <a href="%admin-settings-drupal">administer >> settings >> drupal</a>.</li> </ul> ', array('%file-cron' => 'cron.php', '%file-xmlrpc' => 'xmlrpc.php', '%admin-settings-drupal' => url('admin/settings/drupal'))); - $output .= '<p>'. t('If you maintain a directory of sites, you can list them on a page using the <code>drupal_directory_page()</code> function. Sample instructions: + $output .= '<p>'. t('If you maintain a directory of sites, you can list them on a page using the <code>drupal_client_page()</code> function. Sample instructions: <ul> <li>Enable the page module. Select create content >> page.</li> <li>For input format, select PHP code.</li> <li>Give the page a title. For body, put: <pre> <?php -print drupal_directory_page(); +print drupal_client_page(); ?> </pre> <li>Save the page.</li> @@ -187,7 +187,7 @@ function drupal_client_ping($client, $system) { db_query("UPDATE {client} SET link = '%s', name = '%s', mail = '%s', slogan = '%s', mission = '%s', users = %d, nodes = %d, version = '%s', changed = '%s' WHERE cid = %d", $client['uid'], $client['link'], $client['name'], $client['mail'], $client['slogan'], $client['mission'], $client['users'], $client['nodes'], $client['version'], time(), $client['cid']); } else { - $client['cid'] = db_next_id('client'); + $client['cid'] = db_next_id('{client}_cid'); db_query("INSERT INTO {client} (cid, link, name, mail, slogan, mission, users, nodes, version, created, changed) VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $client['cid'], $client['link'], $client['name'], $client['mail'], $client['slogan'], $client['mission'], $client['users'], $client['nodes'], $client['version'], time(), time()); } if (is_array($system)) { diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module index 18d89b4d088926913df880bc0b781f5da61493c4..031a95e5c8e9299876d844dd623ebf260196e9e3 100644 --- a/modules/drupal/drupal.module +++ b/modules/drupal/drupal.module @@ -32,14 +32,14 @@ function drupal_help($section) { <li>administer Drupal <a href="%admin-settings-drupal">administer >> settings >> drupal</a>.</li> </ul> ', array('%file-cron' => 'cron.php', '%file-xmlrpc' => 'xmlrpc.php', '%admin-settings-drupal' => url('admin/settings/drupal'))); - $output .= '<p>'. t('If you maintain a directory of sites, you can list them on a page using the <code>drupal_directory_page()</code> function. Sample instructions: + $output .= '<p>'. t('If you maintain a directory of sites, you can list them on a page using the <code>drupal_client_page()</code> function. Sample instructions: <ul> <li>Enable the page module. Select create content >> page.</li> <li>For input format, select PHP code.</li> <li>Give the page a title. For body, put: <pre> <?php -print drupal_directory_page(); +print drupal_client_page(); ?> </pre> <li>Save the page.</li> @@ -187,7 +187,7 @@ function drupal_client_ping($client, $system) { db_query("UPDATE {client} SET link = '%s', name = '%s', mail = '%s', slogan = '%s', mission = '%s', users = %d, nodes = %d, version = '%s', changed = '%s' WHERE cid = %d", $client['uid'], $client['link'], $client['name'], $client['mail'], $client['slogan'], $client['mission'], $client['users'], $client['nodes'], $client['version'], time(), $client['cid']); } else { - $client['cid'] = db_next_id('client'); + $client['cid'] = db_next_id('{client}_cid'); db_query("INSERT INTO {client} (cid, link, name, mail, slogan, mission, users, nodes, version, created, changed) VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $client['cid'], $client['link'], $client['name'], $client['mail'], $client['slogan'], $client['mission'], $client['users'], $client['nodes'], $client['version'], time(), time()); } if (is_array($system)) {