<?php
/*
Plugin Name: Menu Options Manager
Description: Manage customizable menu options with choices for restaurant menu items.
Version: 1.00
CMS Version Required: 3.54
*/

// Don't run from command-line (cron scripts can error when certain CGI env vars aren't set)
if (inCLI()) { return; }

// Plugin initialization only - menu items are handled by schema files

// Plugin Functions: Load plugin functions when we're in the admin
if (defined('IS_CMS_ADMIN')) { // if in CMS Plugins Menu
  // load functions
  require_once("menuOptions_functions.php");
  
  // register callbacks
  addAction('admin_postlogin', '_menuOptions_pluginSetup_createSchemas', null, -999);
  addAction('admin_postlogin', 'menuOptions_init', null, 10);
}

// Initialize plugin
function menuOptions_init() {
  // Plugin initialization completed
  // Menu items are now handled through schema files in sidebar
  // - Menu Options: Access via sidebar "Menu Options" link
  // - Menu Option Choices: Access via sidebar "Menu Option Choices" link
}

// eof
?>