Created
April 26, 2012 22:17
-
-
Save bangpound/2503638 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implement hook_form_FORMID_alter(). | |
*/ | |
function MODULE_form_blog_node_form_alter(&$form, &$form_state) { | |
// Change label of save button. | |
$form['buttons']['submit']['#value'] = t('Post'); | |
// Disable preview button. | |
$form['buttons']['preview']['#access'] = FALSE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment