Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (arg(0) == 'node') {
- $node = menu_get_object();
- }
- $curNode = $node->nid;
- $curNodeDate = $node->created;
- dsm($node);
- $type = "article";
- $nodes = node_load_multiple(array(), array('type' => $type));
- dsm($nodes);
- $finalNid = array();
- foreach($nodes as $products):
- if( intval($products->created) > intval($curNodeDate) ){
- dsm($products->created .'>'. $curNodeDate .'---'. $products->nid .'~~'. $products->title );
- $finalNid[] = $products->nid;
- }
- endforeach;
- foreach($nodes as $products):
- if( intval($products->created) < intval($curNodeDate) ){
- dsm($products->created .'<'. $curNodeDate .'---'. $products->nid .'~~'. $products->title );
- $finalNid[] = $products->nid;
- }
- endforeach;
- dsm(implode("," , $finalNid));
- return implode("," , $finalNid);
- 1416508384>1416508382---65~~Rimmel's Georgia May Jagger & COTY partner with DBC
- 1416508383>1416508382---66~~Daisy Marc Jacobs Tweetshop Grabs the Attention of the Industry
- 1416508390>1416508382---68~~COTY's Mario Reis
- 1416508386>1416508382---71~~Beauty Trends for this Holiday Season
- 1416508385>1416508382---72~~COTY’s Catherine Walsh Honored
- 1416508388>1416508382---74~~ONE COTY - Looking at COTY as a Whole
- 1416508387>1416508382---75~~Roberto Cavalli
- 1416508389>1416508382---80~~A modern story of seduction
- 1416764226>1416508382---86~~Sir Ken Robinson
- 1416810455>1416508382---87~~COTY’s Svetlana Omelchenko makes the 2014 Top 100 OUTstanding LGBT Business Leaders List
- 1413318695<1416508382---2~~philosophy bringing hope & grace to mental health efforts
- 1413318711<1416508382---3~~Q&A with Ann Gottlieb
- 1413402303<1416508382---6~~Meet COTY CMO of Skincare
- 1416508381<1416508382---67~~Spotlight On Leadership: David Booth
- 1415666899<1416508382---73~~Creative Collaborations: COTY and Avon
- 65,66,68,71,72,74,75,80,86,87,2,3,6,67,73
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement