';
}
function jfa_PluginsUsedPlugin_widget_control() {
// Get our options and see if we're handling a form submission.
$options = get_option('widget_jfa_PluginsUsedPlugin');
if (!is_array($options)) {
$options = array('title'=>'');
}
if ($_POST['jfa_PluginsUsedPlugin_submit']) {
// Remember to sanitize and format use input appropriately.
$options['title'] = strip_tags(stripslashes($_POST['jfa_PluginsUsedPlugin_title']));
update_option('widget_jfa_PluginsUsedPlugin', $options);
}
// Be sure you format your options to be valid HTML attributes.
$title = htmlspecialchars($options['title'], ENT_QUOTES);
// Here is our little form segment. Notice that we don't need a
// complete form. This will be embedded into the existing form.
echo '';
echo '';
}
register_sidebar_widget('Plugins used Plugin', 'jfa_PluginsUsedPlugin_widget');
register_widget_control('Plugins used Plugin', 'jfa_PluginsUsedPlugin_widget_control', 200, 100);
}
add_action('plugins_loaded', 'jfa_PluginsUsedPlugin_init');
?>