'key', 'entity' => 'string', 'entity_id' => 'int', 'label' => 'string', 'type' => 'string', 'value' => 'string', 'state' => 'string' ); public static function types($key=null){ $types = array( self::PHONE => array( 'label' => "Tél. Fixe", 'icon' => "", 'color' => "", ), self::MOBILE => array( 'label' => "Tél. Mobile", 'icon' => "", 'color' => "", ), self::PERSONAL_MAIL => array( 'label' => "Mail perso.", 'icon' => "", 'color' => "", ), self::PROFESSIONAL_MAIL => array( 'label' => "Mail pro.", 'icon' => "", 'color' => "", ), ); Plugin::callHook('contact_types', array(&$types)); return isset($key) && isset($types[$key]) ? $types[$key] : $types; } } ?>