<div dir="ltr">then , there is no solution in 5.x for that content type problem !!<br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 7:54 PM, Marc Poris <span dir="ltr">&lt;<a href="mailto:marc@funnymonkey.com">marc@funnymonkey.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In 6.3 there&#39;s already an excellent warning in the confirmation<br>
message. &nbsp;Try it out slowly.<br>
<font color="#888888"><br>
Marc<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
Earnie Boyd wrote:<br>
&gt; Quoting Bill Fitzgerald &lt;<a href="mailto:bill@funnymonkey.com">bill@funnymonkey.com</a>&gt;:<br>
&gt;<br>
&gt;<br>
&gt;&gt; My .02 --<br>
&gt;&gt;<br>
&gt;&gt; I don&#39;t really see this as a bug, but as a feature that protects a site<br>
&gt;&gt; from mass content deletion if a node type is inadvertently deleted.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; It is a bug that you don&#39;t get the warning you mention below.<br>
&gt;<br>
&gt;<br>
&gt;&gt; One possible fix, which would be more of a feature: if there are nodes<br>
&gt;&gt; of any content type, flash a warning onscreen if a user is attempting to<br>
&gt;&gt; delete the node type.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; Yes, and if it doesn&#39;t stop the user from deleting the content type<br>
&gt; with content assigned without deleting the content then it is a design<br>
&gt; flaw, IMNSHO. &nbsp;The lack of foreign key relationships is the reason that<br>
&gt; this design can flourish.<br>
&gt;<br>
&gt;<br>
&gt;&gt; Generally, though, the ability to delete node types should only be given<br>
&gt;&gt; to highly trusted -- and highly competent -- users.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; I agree but that doesn&#39;t negate the flawed design feature.<br>
&gt;<br>
&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; Bill<br>
&gt;&gt;<br>
&gt;&gt; bharani kumar wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The steps to generate the bug are:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 1. Create a Content type (eg: Content type 1)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2. Create a content(eg: content-1) of the same content type (Content type<br>
&gt;&gt;&gt; 1).<br>
&gt;&gt;&gt; 3. Delete the Content type (i.e., Content type 1).<br>
&gt;&gt;&gt; 4. Try to edit the content (content-1).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The browser will show warning,<br>
&gt;&gt;&gt; and you wont be able to edit the<br>
&gt;&gt;&gt; contents.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 5. Now create a content-type with the same name, which you have deleted<br>
&gt;&gt;&gt; (i.e., Content type 1), and you will be able to edit or delete your content<br>
&gt;&gt;&gt; (i.e., content-1).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ???Any solution<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt; Create a module to hook_form_alter and add a #validate function that<br>
&gt; will be called and add form_error() message if the content type has<br>
&gt; content.<br>
&gt;<br>
&gt; Earnie -- <a href="http://for-my-kids.com/" target="_blank">http://for-my-kids.com/</a><br>
&gt; -- <a href="http://give-me-an-offer.com/" target="_blank">http://give-me-an-offer.com/</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>