<div id="message" class="updated fade">
            <p>
              <strong>
                <?php 
            echo 'Widget "' . $help_widget['name'] . '" has been deleted.';
            ?>
              </strong>
            </p>
          </div>
          <?php 
        } else {
            if ($_POST[$element_widget_submit . $i] == $button_text_save_single) {
                /*************************/
                /*** save single entry ***/
                /*************************/
                $error_message = MCW_set_mywidget($help_widget);
                if ($error_message != '') {
                    ?>
            <div id="message" class="error">
              <p><b><?php 
                    echo $error_message;
                    ?>
</b></p>
            </div> 
            <?php 
                }
                ?>
            <div id="message" class="updated fade">
              <p><b>Widget "<?php 
                echo $help_widget['name'];
                ?>
function MCW_add_mywidget($content)
{
    //2.0 compatible
    //update widget repository
    $myWidget_IDs = MCW_get_all_widget_IDs();
    $index = count($myWidget_IDs);
    $mcw_widget_ID = array('name' => $content['name']);
    $myWidget_IDs[$index] = $mcw_widget_ID;
    //append widget
    MCW_set_all_widget_IDs($myWidget_IDs);
    //update widget content
    return MCW_set_mywidget($content);
    //includes MCW_generate_class();
}