API GetGlyphSocketInfo

Returns information on a glyph socket. enabled, glyphType, glyphTooltipIndex, glyphSpellID, icon = GetGlyphSocketInfo(socketID[[, talentGroup], isInspect, inspectUnit]);

Arguments

 * socketID : Number - glyph [Glyph SocketID|socket index]] (1 to GetNumGlyphSockets )
 * talentGroup : Optional Number - (dual) specialization index (1 to (...)).
 * isInspect : Optional Boolean - true to return information about the inspected unit
 * inspectUnit : String - the unitid being inspected

Returns

 * enabled: Boolean - 1 if available, nil if locked.
 * glyphType : Number - GLYPH_TYPE_MAJOR (1), or GLYPH_TYPE_MINOR (2)
 * glyphTooltipIndex : Number - Index to be used with GLYPH_SLOT_TOOLTIP#
 * glyphSpellID : Number - spell ID of socketted glyph, nil if no glyph is socketed.
 * icon : String - Glyph rune texture path.
 * glyphID : Number - unique glyph id

Examples
The following code scans all the glyph sockets and prints out the status of each one. for i = 1, NUM_GLYPH_SLOTS do local enabled, glyphType, glyphTooltipIndex, glyphSpellID, icon = GetGlyphSocketInfo(i); if ( enabled ) then local link = GetGlyphLink(i);-- Retrieves the Glyph's link ("" if no glyph in Socket); if ( link ~= "") then DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." contains "..link); else DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." is unlocked and empty!"); end else DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." is locked!"); end end