how to get summary of content in following code In my block code i have following code in one case:

$query = db_select('node', 'n');
    $query-&gt;condition('n.status', NODE_PUBLISHED);
    $query-&gt;condition('n.type', 'news');
    $nids = $query
    -&gt;fields('n', array('nid'))
    -&gt;orderBy('changed', 'DESC')
    -&gt;range(0, 1)
    -&gt;addTag('node_access')
    -&gt;execute()
    -&gt;fetchCol();
    $nodes = node_load_multiple($nids);
    $content = '&lt;div class="white_rounded_box"&gt;
                    &lt;div class="pos clearfix"&gt;
                        &lt;h3&gt;&lt;span&gt;&lt;img src="'.base_path().path_to_theme().'/images/new_ico.png" width="15" alt="news" /&gt;Latest News&lt;/span&gt;&lt;/h3&gt;';
    foreach($nodes as $record)
    {
        $content.='&lt;p&gt;'./*need summarry here*/.'&lt;/p&gt;'.l('Read more', 'node/'.$record-&gt;nid); 
    }                   
    $content .= '&lt;/div&gt;
            &lt;/div&gt;';
    $block['subject'] = t('Latest news');
    $block['content'] = $content;


How do i get summary of content in there?
You'll need to look in $record in your foreach statement and find the content you want. (probably $record-&gt;body) Since you are polling the database manually (vs. using display_modes like teaser / full) you'll probably have to create the summary yourself.

I suggest using the truncate_utf8() function which "Truncates a UTF-8-encoded string safely to a number of characters.", it supports adding "...", word boundaries etc.

As for this "looking" into your $record var, I suggest using the Devel module, which ships with a function dpm() which can take basically any variable and output it in a pretty navigationable message on your page.