pan class="kt">error</span> <span class="p">{</span>
    <span class="k">return</span> <span class="kc">nil</span>
<span class="p">}</span>
</pre></div>


<h4 id="beforedisable">BeforeDisable<a class="headerlink" href="#beforedisable" title="Permanent link">&para;</a></h4>
<p>BeforeDisable is only applicable to Addon items, and is called before the addon
changes status to "Disabled". By returning a non-nil <code>error</code> value, the addon
will not become disabled.</p>
<div class="codehilite"><pre><span><