diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-10-25 19:32:10 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-10-25 19:32:10 -0200 |
commit | fb5382c855948e22c0ace428cdca0e2ec18951d6 (patch) | |
tree | 14e48071ae5e8d34a5db65270d42d8ebe41080ed | |
parent | 9e2b4bf4ecffb1704657cedf76f6cddb5874931c (diff) | |
download | muamba-fb5382c855948e22c0ace428cdca0e2ec18951d6.tar.gz muamba-fb5382c855948e22c0ace428cdca0e2ec18951d6.tar.bz2 |
Remove bookmark option from node form
-rw-r--r-- | muamba.module | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/muamba.module b/muamba.module index 6342f49..3be6d6b 100644 --- a/muamba.module +++ b/muamba.module @@ -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']); + } +} |