get collections on index page

Hi...I try to get collections on my theme index page, based on the code on:

but I got error: Call to undefined function get_collections() in .../theme/index.php

I wonder if I'm missing references?

I can't call has_collections() or other functions, I will get the same error: undefined function.



That's documentation for Omeka 1.x. For Omeka 2.x, you'll probably want something like get_records

$collections = get_records('collections');

Thanks Patrick.