'Process the Enabled Flag'

@staticmethod
def channel_onaccept(form):

    if form.record:
        if (form.record.enabled and (not form.vars.enabled)):
            current.s3db.msg_channel_disable(form.table._tablename, form.vars.channel_id)
        elif (form.vars.enabled and (not form.record.enabled)):
            current.s3db.msg_channel_enable(form.table._tablename, form.vars.channel_id)
    elif form.vars.enabled:
        current.s3db.msg_channel_enable(form.table._tablename, form.vars.channel_id)
