/** * event: controller_action_layout_render_before * in: Mage_Core_Controller_Varien_Action::renderLayout() * * @param $event Varien_Event_Observer * @return void */ public function addRobotsTagToCustomerAccount(Varien_Event_Observer $event) { $fullActions = array('customer_account_login' => '', 'customer_account_create' => ''); $items = new Varien_Object(); $items->setLayoutHandle('customer_account')->setFullActions(new Varien_Object($fullActions)); Mage::dispatchEvent('loewenstark_seo_robots_tag_to_customer_account', array('object' => $items, 'model' => $this)); if (in_array($items->getLayoutHandle(), $this->_getLayout()->getUpdate()->getHandles()) || in_array($this->_getFullActionName(), array_keys($items->getFullActions()->getData()))) { $this->_setRobotsHeader($this->_helper()->getCustomerRobots()); } }