Answers to other questions here (e.g. 1) show capacitors used to drop AC voltages to levels suitable for a LED. I've seen much simpler circuits such as the one below







simulate this circuit &ndash; Schematic created using CircuitLab

Assuming it's in a suitable enclosure, are there significant drawbacks or dangers to this circuit compared to others?


Question: Display a field of a node that is referenced on another node via a relationship
Answer: I finally went with something similar to Stefan's answer.  I created a module using hook_views_pre_render that checks the correct table against the node id to see if there are any related nodes.  The code is shown below.

&lt;?php

/**
 * Implementation of hook_views_pre_render()
 */
function gretna_views_pre_render(&amp;$view) {
    // Select the right view
    if ($view-&gt;name == 'stores_list') {
        // Check how many results there are
        $count = count($view-&gt;result);
        // For each result (reason we don't use foreach is every result is duplicated twice)
        for($i = 0; $i &lt; $count; $i++) {
            // Get the nid for this row
            $nid = $view-&gt;result[$i]-&gt;nid;
            // Check to see if the node has any related offers
            $result = db_query("SELECT nid FROM {content_type_store_offers} WHERE field_offer_store_nid = %d", $nid);
            $result = db_fetch_array($result);
            // If not false, the row has offers
            if ($result !== FALSE) {
                $view-&gt;result[$i]-&gt;users_uid = "Yes";
            }
            // Else it doesn't
            else {
                $view-&gt;result[$i]-&gt;users_uid = "No";
            }
        }
    }
}