]> gitweb.fluxo.info Git - drupal/muamba.git/commitdiff
Remove bookmark option from node form
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Oct 2011 21:32:10 +0000 (19:32 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Oct 2011 21:32:10 +0000 (19:32 -0200)
muamba.module

index 6342f49bb8525b325dadd59703564b1bec159672..3be6d6b637ad555ab46fb0762ce5db77ac379778 100644 (file)
@@ -290,3 +290,13 @@ function muamba_node_update($node) {
       ->execute();
   }
 }
+
+/**
+ * Implements hook_form_alter()
+ */
+function muamba_form_alter(&$form, &$form_state, $form_id) {
+  // Remove bookmark option.
+  if ($form_id == 'muamba_node_form') {
+    unset($form['flag']);
+  }
+}