Exemplo n.º 1
0
function tb_plugin_init()
{
    // install or upgrade database
    tb_db_install();
    // set defaults
    $tb_o = get_option("tweet-blender");
    if (!isset($tb_o['widget_show_photos'])) {
        $tb_o['widget_show_photos'] = true;
    }
    if (!isset($tb_o['widget_show_source'])) {
        $tb_o['widget_show_source'] = true;
    }
    if (!isset($tb_o['widget_show_header'])) {
        $tb_o['widget_show_header'] = true;
    }
    if (!isset($tb_o['general_link_screen_names'])) {
        $tb_o['general_link_screen_names'] = true;
    }
    if (!isset($tb_o['general_link_hash_tags'])) {
        $tb_o['general_link_hash_tags'] = true;
    }
    if (!isset($tb_o['general_link_urls'])) {
        $tb_o['general_link_urls'] = true;
    }
    if (!isset($tb_o['widget_check_sources'])) {
        $tb_o['widget_check_sources'] = true;
    }
    if (!isset($tb_o['widget_show_user'])) {
        $tb_o['widget_show_user'] = true;
    }
    update_option('tweet-blender', $tb_o);
}
Exemplo n.º 2
0
function tb_plugin_init()
{
    // install or upgrade database
    tb_db_install();
    // set defaults
    $tb_o = get_option("tweet-blender");
    if (!isset($tb_o['widget_check_sources'])) {
        $tb_o['widget_check_sources'] = true;
    }
    if (!isset($tb_o['rate_limit_data'])) {
        $tb_o['rate_limit_data'] = array();
    }
    update_option('tweet-blender', $tb_o);
}