almost 11 years ago
If anyone wants to hide the format text from the body field in drupal then try it:-
// override hook_form_alter function CUSTOM_MODULENAME_form_alter(&$form, &$form_state, $form_id) { if($form_id == 'restaurants_node_form') {//form_id //do modification to form array $form $form['#after_build'][] = 'CUSTOM_MODULENAME_NODETYPE_node_form_after_build'; } } // function to unset form values function CUSTOM_MODULENAME_NODETYPE_node_form_after_build($form){ $form['body']['und']['0']['format']['#access'] = FALSE; return $form; }
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)