php

Structured Array of all US Universities and Colleges

While working on a project, I came to the conclusion that I needed to have an array of all colleges and universities within the United States. I searched around and came across this website which contained only an unordered list of universities in an HTML page. I extracted all of the information and generated an array with the university’s domain name as the key.

Of course after I completed this, I realized I didn’t need it. D’oh!  continue ...

How to make mass changes to nodes in Drupal

Recently, I had to make mass changes to nodes while adding a new feature to a live website.

In one case, I wanted to add a date field to a content type with hundreds of existing nodes. For the sake of simplicity, best date that could be used for this field was the created date of the node. With that information, I was able to write the following script to replace any empty date fields with the created date.  continue ...

Subscribe to RSS - php