Function __global->import_menu_spreadsheet
Definitions
sources/menus2.php
- Import a spreadsheet file menu structure, after ERASING whole current menu structure.This function is intended for programmers, writing upgrade scripts for a custom site (dev>staging>live).Assumes spreadsheet was generated with export_menu_spreadsheet.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$file_path | ?PATH | Null | N/A | N/A | The path to the spreadsheet file (null: uploads/website_specific/cms_menu_items.<default file type>) |
$filename | ?string | Null | N/A | N/A | The filename of the spreadsheet file (null: detect from $file_path) |