<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 01/05/2012 02:17 PM, Walt Daniels wrote:
<blockquote
cite="mid:CALZ-9dXc6bVEq+BdFKr+4krOfgVPCVv4vGyPuSja30mu14sD4A@mail.gmail.com"
type="cite">We have hundreds of blocks, some of which were
generated for some particular event and are no longer needed, but
there is no way I can find to tell if a block is in use. Most of
our blocks are listed as disabled, i.e. not in a region, but
actually on a panel page or truely unused. If would be nice if the
blocks admin page distinguished these two cases.
</blockquote>
That would be nice. :) Until then you can write a counter into
hook_preprocess_block()<code><span style="color: #000000"><span
style="color: #0000BB"></span></span></code> and record when
they are loaded. After a sufficient amount of time using the site
and getting crawled you should have a few with 0 counts and feel
safe deleting them. It's a clumsy workaround but the best i can
think of off the top of my head. Panels custom content for the win!<br>
<pre class="moz-signature" cols="72">--
Michael Favia <a class="moz-txt-link-abbreviated" href="mailto:michael@favish.com">michael@favish.com</a>
tel. 512.669.5650 <a class="moz-txt-link-freetext" href="http://www.favish.com">http://www.favish.com</a>
</pre>
</body>
</html>