| 12345678910111213141516171819202122232425262728 | 
							- <?php
 
- namespace ColdTrick\SiteAnnouncements;
 
- class FooterMenu {
 
- 	
 
- 	/**
 
- 	 * add a footer menu item for site announcements
 
- 	 *
 
- 	 * @param string          $hook        the name of the hook
 
- 	 * @param string          $type        the type of the hook
 
- 	 * @param \ElggMenuItem[] $returnvalue current returnvalue
 
- 	 * @param array           $params      supplied params
 
- 	 *
 
- 	 * @return \ElggMenuItem[]
 
- 	 */
 
- 	public static function register($hook, $type, $returnvalue, $params) {
 
- 		
 
- 		$returnvalue[] = \ElggMenuItem::factory(array(
 
- 			'name' => 'site_announcements',
 
- 			'text' => elgg_echo('site_annoucements'),
 
- 			'href' => 'announcements/all',
 
- 			'is_trusted' => true
 
- 		));
 
- 		
 
- 		return $returnvalue;
 
- 	}
 
- }
 
 
  |