diff --git a/e107_plugins/_blank/_blank_setup.php b/e107_plugins/_blank/_blank_setup.php new file mode 100644 index 000000000..b3359f071 --- /dev/null +++ b/e107_plugins/_blank/_blank_setup.php @@ -0,0 +1,74 @@ +
"; + } + + function install_post($var) + { + $sql = e107::getDb(); + $mes = e107::getMessage(); + + // $query = "INSERT INTO #_blank SQL insert query goes here;"; + + // if($sql->db_Select_gen($query)) + { + $mes->add("Custom - Install Message.", E_MESSAGE_SUCCESS); + } + // else + { + $mes->add("Custom - Failed to add default table data.", E_MESSAGE_ERROR); + } + + } + + function uninstall_options() + { + + $listoptions = array(0=>'option 1',1=>'option 2'); + + $options = array(); + $options['mypref'] = array( + 'label' => 'Custom Uninstall Label', + 'preview' => 'Preview Area', + 'helpText' => 'Custom Help Text', + 'itemList' => $listoptions, + 'itemDefault' => 1 + ); + + return $options; + } + + + function uninstall_post($var) + { + // print_a($var); + } + + function upgrade_post($var) + { + // $sql = e107::getDb(); + } + +} +?> \ No newline at end of file diff --git a/e107_plugins/_blank/plugin.xml b/e107_plugins/_blank/plugin.xml new file mode 100644 index 000000000..92bc38fe4 --- /dev/null +++ b/e107_plugins/_blank/plugin.xml @@ -0,0 +1,24 @@ + + + + + A Blank Plugin to help you get started in plugin development + misc + + Configure Blank + Blank Prefs + + + Blank + + + 1 + [more...] + + + + + + + +