From 235423335d21cadacadff5c45606c3d2be3348c5 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Wed, 10 Nov 2010 20:06:42 +0000 Subject: [PATCH] Hide the "promoted to front page" and "Sticky at top of lists" options when editing nodes. git-svn-id: file:///tmp/wdn_thm_drupal/trunk@312 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- sites/all/modules/unl/unl.module | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sites/all/modules/unl/unl.module b/sites/all/modules/unl/unl.module index caa0acb6..86215645 100644 --- a/sites/all/modules/unl/unl.module +++ b/sites/all/modules/unl/unl.module @@ -248,6 +248,14 @@ function unl_form_alter(&$form, $form_state, $form_id) { // Also turn on revisioning by default $form['revision_information']['revision']['#default_value'] = TRUE; unset($form['revision_information']['revision']['#states']); + + // Also hide the "Promoted to front page" option + $form['options']['promote']['#prefix'] = '<div style="display:none;">'; + $form['options']['promote']['#suffix'] = '</div>'; + + // Also hide the "Sticky at top of lists" option + $form['options']['sticky']['#prefix'] = '<div style="display:none;">'; + $form['options']['sticky']['#suffix'] = '</div>'; } } -- GitLab