Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Copied widget-config.php from WordPress Codex and renamed to map-conf…
Browse files Browse the repository at this point in the history
…ig.php
  • Loading branch information
XSmeets committed Jun 2, 2014
1 parent c0c30b1 commit b6c4c52
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dashboard-dynmap/map-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* This file could be used to catch submitted form data. When using a non-configuration
* view to save form data, remember to use some kind of identifying field in your form.
*/
$number = stripslashes($_POST['number']);
self::update_dashboard_widget_options(
self::wid, //The widget id
array( //Associative array of options & default values
'example_number' => $number,
)
);

?>
<p>This is an example dashboard widget!</p>
<p>This is the configuration part of the widget, and can be found and edited from <tt><?php echo __FILE__ ?></tt></p>
<input type="text" name="number" />

0 comments on commit b6c4c52

Please sign in to comment.