MyBB Community Forums

Full Version: Options for plugin select menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I cannot find any docs on how to write the code to populate the options for a plugin select box.

$setting = array(
        'sid'         => 'NULL',
        'name'        => 'setting name',
        'title'       => 'setting title',
        'description' => 'setting description',
        'optionscode' => 'select',
        'value'       => '?',
        'disporder'   => '13',
        'gid'         => intval( $gid )
    );
    $db->insert_query( 'settings', $setting );

How do I write the default value?