/** Add Colorpicker Field to "Add New Category" Form **/
function mapasculturais_category_edit($term)
{
    $selectedFilters = get_option("category_{$term->term_id}");
    ?>
    <tr>
        <td>
            <input type='hidden' name="<?php 
    echo MapasCulturaisConfiguration::OPTION_NAME;
    ?>
[use_events]" value="0">
            <label>
                <input id="category-use-events" type="checkbox" name="<?php 
    echo MapasCulturaisConfiguration::OPTION_NAME;
    ?>
[use_events]" value="1" <?php 
    if (isset($selectedFilters['use_events']) && $selectedFilters['use_events']) {
        echo 'checked="checked"';
    }
    ?>
> Usar agenda de eventos
            </label>
        </td>
    </tr>
    <tr id="category-events-filter">
        <td valign="bottom" colspan="2">
            <h4>Esta categoria está associada aos seguintes filtros:</h4>
            <?php 
    MapasCulturaisConfiguration::printForm($term->term_id, $selectedFilters);
    ?>
        </td>
    </tr>
<?php 
}