I have a D7 menu of nearly 300 terms in a 3-level hierarchy. Rather than generate them one at a time in the UI, I would like to generate them using code. I am using the book 'Pro Drupal Development' and the Drupal API documentation for menus and the menus.module to attempt this, but am confused about how to establish the structure of the three tiers.
Creating a menu item appears to be fairly simple, implementing hook menu and creating item arrays with values assigned to 'title', 'page callback', 'access callback', and 'type'. My problem is that I must define the hierarchy and I am not clear on how that is done. How do I identify the parent in the array structure?
EDIT - additional information
The menu items, at all levels must have a callback to a view definition following the pattern
View_Name/tid/display_type. The first level of the URL will be a unique label for the View being called. The next level is a term id identifying the specific term from a vocabulary that defines the relationships of the menu options. The third level determines which view page in the definition provides the view output for display. My question is addressing how to duplicate the taxonomy hierarchy in a code generated menu? How do I tell the Drupal the relationships between the links to duplicate the three tier menu system when the links are created? I can provide my customized callbacks but haven't found the correct array key-value settings to generate the menu correctly.
I have experimented using the Taxonomy_Menu module to generate the menu directly, but I cannot find a way to generate different third level URL values within the module. The module generates a menu of taxonomy links and Drupal does not expose the links for editing.