Habari\Comment::add_status PHP Method

add_status() public static method

Register a new comment status
public static add_status ( string $status, boolean $internal = false ) : integer
$status string The name of the new comment status
$internal boolean True if the status is one that was added by core
return integer The id of the new comment type
    public static function add_status($status, $internal = false)
    {
        DB::insert(DB::table('commentstatus'), array('name' => $status, 'internal' => $internal ? 1 : 0));
        return DB::last_insert_id();
    }