function schema() { require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'userprojectapi.php'; $tableArray = array(); $whiteboardMenuTable = array('CreateTableSQL', array(plugin_table('menu', 'whiteboard'), "\n id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY,\n plugin_name C(250) DEFAULT '',\n plugin_access_level I UNSIGNED,\n plugin_show_menu I UNSIGNED,\n plugin_menu_path C(250) DEFAULT ''\n ")); $boolArray = userprojectapi::checkWhiteboardTablesExist(); # add whiteboardmenu table if it does not exist if (!$boolArray[0]) { array_push($tableArray, $whiteboardMenuTable); } return $tableArray; }