I'm building a module that will read parameters from the current page's K2 extra fields, and use them to load modules.
I've successfully loaded the current page's item, but it's "extra_fields" array is missing the extra field name. It's structured like this:
extra_fields {
[0]=> { "id"=>"5", "value"=>"Field 1 Value" }
[1]=> { "id"=>"6", "value"=>"Field 2 Value" }
[2]=> { "id"=>"7", "value"=>"Field 3 Value" }
}
The "id" variables match the extra field ids, but I don't know how to access them from my module. I'm guessing it'll involve getting them through the database using their id, but I don't know how to do that.