Index: ad_external.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ad/external/Attic/ad_external.module,v
retrieving revision 1.1.2.6.2.7
diff -u -r1.1.2.6.2.7 ad_external.module
--- ad_external.module	17 Feb 2009 18:56:26 -0000	1.1.2.6.2.7
+++ ad_external.module	25 Feb 2009 01:51:37 -0000
@@ -141,19 +141,18 @@
 function ad_external_node_form(&$node) {
   $form = array();
 
-  $form['ad_external'] = array(
-    '#type' => 'fieldset',
-    '#title' => t('External'),
-    '#collapsible' => TRUE,
-  );
+  if (user_access('create advertisements')) {
+    $form['ad_external'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('External'),
+      '#collapsible' => TRUE,
+    );
 
-  $form['ad_external']['preview'] = array(
-    '#type' => 'markup',
-    '#value' => ad_external_display_ad($node),
-  );
+    $form['ad_external']['preview'] = array(
+      '#type' => 'markup',
+      '#value' => ad_external_display_ad($node),
+    );
 
-  if ((arg(1) == 'add' || arg(2) == 'edit') &&
-       user_access('create advertisements')) {
     $form['ad_external']['url'] = array(
       '#type' => 'textfield',
       '#title' => t('External Source URL'),
@@ -161,7 +160,6 @@
       '#default_value' => isset($node->url) ? $node->url : '',
       '#description' => t('Enter the complete URL where your external ad his hosted.  The URL must begin with http:// or https://.  For example, %url.', array('%url' => t('http://www.sample.org/external/ad.php'))),
     );
-
   }
 
   return $form;

