I am working on magento extension, i check this code is written in grid.php file for product listing.
Mage::getModel('core/website')->getCollection()->toOptionHash()
When print_r this then it is given me array of website like
Array ( [1] => Website1 [14] => Website2 )
but i want this function should written only one one website. In which manner i change this line so that it give me single website details.
Example: $website_id = 14;
Then i place this variable into this line then it gives me details of that variable website only like,
Array ( [14] => Website2 )
Function line of module is ,