<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Helmut Granda &#187; Drupal</title>
	<atom:link href="http://www.helmutgranda.com/category/programming/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.helmutgranda.com</link>
	<description>learning through interaction</description>
	<lastBuildDate>Wed, 18 Jan 2012 16:08:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable extra fields in CCK for Drupal</title>
		<link>http://www.helmutgranda.com/2009/05/09/disable-extra-fields-in-cck-for-drupal/</link>
		<comments>http://www.helmutgranda.com/2009/05/09/disable-extra-fields-in-cck-for-drupal/#comments</comments>
		<pubDate>Sat, 09 May 2009 19:32:01 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=351</guid>
		<description><![CDATA[There are times when you want to allow the Super Admin to edit those extra fields but not the editors/contributors of your site so this is one way to do it: PHP: &#60; ?php /** * Change the node form */ function phptemplate_node_form($form) { &#160; // echo &#34;&#60;div style='direction:ltr;'&#62;&#34;; dprint_r ($form); echo ''; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you want to allow the Super Admin to edit those extra fields but not the editors/contributors of your site so this is one way to do it:</p>
<div class="syntax_hilite"><strong>PHP:</strong>
<div id="php-1">
<div>
<ol style="">&lt; ?php<br />
/**<br />
* Change the node form<br />
*/<br />
function phptemplate_node_form($form) {<br />
&nbsp; // echo &quot;&lt;div style='direction:ltr;'&gt;&quot;; dprint_r ($form); echo '';<br />
&nbsp;<br />
&nbsp; // Hide 'Log message' text area<br />
&nbsp; $form['log']['#access'] = FALSE;<br />
&nbsp;<br />
&nbsp; // Hide the author collapsable box<br />
&nbsp; $form['author']['#access'] = FALSE;<br />
&nbsp;<br />
&nbsp; // Hide the publishing options collapsable box<br />
&nbsp; $form['options']['#access'] = FALSE;<br />
&nbsp;<br />
&nbsp; // Open the file attachments collapsible block in a full state<br />
&nbsp; $form['attachments']['#collapsed'] = FALSE;<br />
&nbsp;<br />
&nbsp; return drupal_render($form);<br />
}<br />
?&gt;</ol>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2009/05/09/disable-extra-fields-in-cck-for-drupal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

