I would love to also get rid of the "Sticky at top of lists" and the complete Tab.
Would love if you could add this also to this module?

Comments

drupa11y’s picture

Found a solution here -> http://www.brightec.co.uk/blog/hiding-sticky-and-promoted-front-page-opt...

/** * Implements hook_form_alter(). */ 
function mymodule_form_alter(&$form, &$form_state, $form_id) { 
  if (strpos($form_id, '_node_form') !== FALSE) { 
    unset($form['options']['sticky']); 
    unset($form['options']['promote']); 
    } 
  } 
drupa11y’s picture

drupa11y’s picture

Also the Jammer module has both options: https://drupal.org/project/jammer

Publishing options
Remove promoted checkbox on Publishing options
Nodes won't have the option for publishing to the front page by enabling this option.

Remove sticky checkbox on Publishing options
Nodes won't have the option for setting sticky at top of lists by enabling this option.
jamiehollern’s picture

Assigned: Unassigned » jamiehollern

I'll add these options to a new branch in the next week or so. I'd thought about this a while back but coming up with a decent user interface is something I need to think about.

jasonawant’s picture

Issue summary: View changes
StatusFileSize
new3.88 KB

Hi,

Here's patch with this feature with draft UI for the admin page. It's just a start of course. I originally included these in separate field sets, b/c I also wanted to include settings to remove these the node operations for both options as this feature requests: https://www.drupal.org/node/2342047.

Let me know what you think. Jason.

jasonawant’s picture

Status: Active » Needs review

Changing status.

rcodina’s picture

It works for me! Thanks!

rcodina’s picture

Status: Needs review » Reviewed & tested by the community

  • jasonawant authored 455ab69 on 7.x-1.x
    Issue #2049439 by jasonawant: Possibility to also remove "Sticky at top...
jamiehollern’s picture

Version: 7.x-1.1 » 7.x-1.2
Status: Reviewed & tested by the community » Fixed

Fixed in 7.x-1.2.

rcodina’s picture

Many thanks! Maybe module's page should be updated to inform of this new feature.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.