Drupal Remove Promoto to Frontpage
To remove the ‘promote to frontpage’ or ‘sticky’ options from the drupal core, create a module with the following code:
/** * Implements hook_form_alter(). * This is remove the promote to frontpage, and make sticky options from node edit pages */ function alter_drupal_form_alter(&$form, &$form_state, $form_id) { if (strpos($form_id, ‘_node_form’) !== FALSE) { unset($form['options']['sticky']); unset($form['options']['promote']); } if (strpos($form_id, ‘node_admin_content’) !== FALSE) { //$opt[''] = ‘- Select -’; $opt['publish'] = ‘Publish selected content’; $opt['unpublish'] = ‘Unpublish selected content’; $opt['delete'] = ‘Delete selected content’; $opt['pathauto_update_alias'] = ‘Update URL alias’; $form['admin']['options']['operation']['#options'] = $opt; // print_r($form['admin']['options']['operation']['#options']); } }
The first section removes the “promote to frontpage” and “sticky” from all the “create new content” and “edit” pages while the second section remove the option from the main admin content edit page (in drupal 7 admin/content and drupal 6 admin/content/node)
or to change the main admin content edit page (admin/content) you can create a new view using exposed filters and for “update options” field use View Bulk Operation module
Beautiful site, Sumaiya! Not easy to combine a luxurious background with the crumpled paper/cardboard look, and I love the handwritten titles!
You should add in a favicon to complete the effect!