function bebop_oer_providers_update_active()
{
    if (!empty($_GET['page'])) {
        $current_page = $_GET['page'];
        if ($current_page == 'bebop_providers') {
            if (empty($_GET['provider'])) {
                if (isset($_POST['submit'])) {
                    check_admin_referer('bebop_content_provider_settings');
                    //reset the importer queue
                    bebop_tables::update_option('bebop_importers_queue', '');
                    //set the new importer queue
                    $importerQueue = array();
                    foreach (bebop_extensions::bebop_get_extension_configs() as $extension) {
                        if (isset($_POST['bebop_' . $extension['name'] . '_provider'])) {
                            bebop_tables::update_option('bebop_' . $extension['name'] . '_provider', trim($_POST['bebop_' . $extension['name'] . '_provider']));
                            if (!bebop_tables::check_option_exists('bebop_' . $extension['name'] . '_rss_feed')) {
                                bebop_tables::update_option('bebop_' . $extension['name'] . '_rss_feed', 'on');
                            }
                        } else {
                            bebop_tables::update_option('bebop_' . $extension['name'] . '_provider', '');
                        }
                        if (is_array($extension) && isset($_POST['bebop_' . $extension['name'] . '_provider']) && $_POST['bebop_' . $extension['name'] . '_provider'] == 'on') {
                            $importerQueue[] = $extension['name'];
                        }
                    }
                    bebop_tables::update_option('bebop_importers_queue', implode(',', $importerQueue));
                    $_SESSION['bebop_admin_notice'] = true;
                    wp_safe_redirect(wp_get_referer());
                }
            }
        }
    }
}
    ?>
</th>
						<th colspan=><?php 
    _e('Deleted Content', 'bebop');
    ?>
</th>
						<th colspan='2'><?php 
    _e('Options', 'bebop');
    ?>
</th>
					</tr>
				</tfoot>
				<tbody>
				<?php 
    //loop throught extensions directory and get all extensions
    foreach (bebop_extensions::bebop_get_extension_configs() as $extension) {
        echo '<tr>
						<td>' . $extension['display_name'] . '</td>
						<td>' . bebop_tables::count_users_using_extension($extension['name'], 1) . '</td>
						<td>' . bebop_tables::count_users_using_extension($extension['name'], 0) . '</td>
						<td><a href="?page=bebop_content&type=unverified">' . bebop_tables::count_content_by_extension($extension['name'], 'unverified') . '</a></td>
						<td><a href="?page=bebop_content&type=verified">' . bebop_tables::count_content_by_extension($extension['name'], 'verified') . '</a></td>
						<td><a href="?page=bebop_content&type=deleted">' . bebop_tables::count_content_by_extension($extension['name'], 'deleted') . '</a></td>
						<td>';
        echo "<label class='alt' for='bebop_" . $extension['name'] . "_provider'>";
        _e('Enabled:', 'bebop');
        echo "</label><input id='bebop_" . $extension['name'] . "_provider' name='bebop_" . $extension['name'] . "_provider' type='checkbox'";
        if (bebop_tables::get_option_value('bebop_' . $extension['name'] . '_provider') == 'on') {
            echo 'CHECKED';
        }
        echo '></td>