I am a Permanent Member (or Community Ambassador) of the Drupal Association.Here is a function that will remove all duplicate nodes (based on title) for a certain content type. It keeps the most recent one.
<?php
function dedupe($type) {
$previous = array();
$result = db_query("SELECT nid, title FROM {node}
WHERE title IN
(SELECT title FROM {node}
WHERE type = '%s'
GROUP BY title HAVING count(*) > 1)
ORDER BY title, created DESC", $type);
while ($row = db_fetch_array($result)) {
if ($row['title'] == $previous['title']) {
node_delete($previous['nid']);
}
$previous = $row;
}
}
?>Commit #202532 by robertDouglass at 11:02
Advanced Help Injection and Export: /modules/helpinject/helpinject.admin.inc 1.1Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.23
#428630 (first pass) let admin exclude form ids from help inject.
Commit #202528 by robertDouglass at 10:19
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.22
Adding 'weight' to the list of excluded form elements.
Commit #202522 by robertDouglass at 09:39
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.21
#444568 more strictly limit the set of form elements on which inject icons appear.
Commit #202520 by robertDouglass at 09:32
Advanced Help Injection and Export: /modules/helpinject/helpinject.css 1.2
Danjulo has been taking yoga lessons and is pleased with the positive affects on his playing. Sports and music DO mix.
Commit #202338 by robertDouglass at 22:07
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.19
#433994 by tirsales - pass by reference is deprecated. pass by reference is deprecated. pass by references is .... you'd think I'd learn this :P
About my shirt
Brand:
Unknown - label removed
Material:
Cotton, flat weave
Pattern, description, colors:
Red/pink and orange/yellow hbiscus blossoms, variegated leaves and fronds in green/brown/white/mustard on a pale yellow background
Commit #198650 by robertDouglass at 15:09
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.18
HelpInject now supports translated help. If you use the content translation module to translate your book pages into multiple languages, you can export an Advanced Help compatible module and help texts that include all of the translation.
Commit #198600 by robertDouglass at 11:08
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.17
Performance tune the generated module by not including code for forms if no forms have help, and the same with hook_help.
Commit #198588 by robertDouglass at 09:16
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.16
Eliminate warning on export if no files
Spring hath sprung.
I have broken the seals on my shirt collection ... I wonder if I can wear them all this year before it gets cold again ... you never know with German weather. A couple trips to Italy and Spain should increase the number of usefully warm days available to me.
Project description: Go through all shirts in my possession. Wear one each day that is warm enough, no repeats until all have been worn. Scan, present ... what about the ones I can't wear? We'll cross that bridge when we come to it, I guess.
Danjulo should acquaint himself with this sound and insist all ... Playbill Arts: Playbill Listing Detail: Danjulo Ishizaka and José Gallardo. Danjulo Ishizaka ...
Commit #194130 by robertDouglass at 21:32
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.15
#416068 by CrashTest_: Link to node/add from the inject page, complete with destination and lightbox2 integration, so that you can add new books to the book structure within the workflow of injecting.
In this article I will show you how you can write a tiny bit of code that will reveal new fields and facets for searching with the ApacheSolr module and Acquia Search. Using Acquia Drupal we’ll write an example module that takes the file type from CCK file and image fields and makes them into their own search fields. This results in us being able to filter our search results based on file type. This code fulfils the situation where you want, for example, to find a specific post that has a JPEG image, or all of the posts with PDFs that match a particular keyword.
Commit #193864 by robertDouglass at 10:34
Apache Solr Search Integration: /modules/apachesolr/apachesolr.module 1.1.2.52 @ DRUPAL-5
Commit #193438 by robertDouglass at 14:38
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.14
New feature: files attached to the node get exported with the help directory. Various bug fixes as well.
Commit #193414 by robertDouglass at 11:39
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.13
node_prepare is not the way. node_view is.
Commit #193394 by robertDouglass at 10:52
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.12
Run node_prepare on node during export.
Commit #193388 by robertDouglass at 10:29
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.11
#424476 by KarenS: Don't export more books than were selected. Plus some rudimentary form validation.