Remove “Split Summary At Cursor” button in Drupal
We were developing a website that required use by novice users and wanted to eliminate anything that could be confusing. The “Split Summary At Cursor” button on the body field in Drupal served no purpose and could possibly confuse users.
In order to remove it, you must create a module with the following function. Note that our module was named “digitalstax_customizations.”
function digitalstax_customizations_form_alter(&$form, $form_state, $form_id) {
if(isset($form['body_field']['teaser_include'])) {
$form['body_field']['teaser_include']['#access'] = FALSE;
}
}
| Print article | This entry was posted by Raymond on April 17, 2010 at 11:32 pm, and is filed under Drupal. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.
about 3 months ago
Terrific work! This is the type of information that should be shared around the web. Shame on the search engines for not positioning this post higher!
about 3 months ago
This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!
about 2 months ago
Good dispatch and this enter helped me alot in my college assignement. Say thank you you for your information.
about 2 months ago
Great site. A lot of useful information here. I’m sending it to some friends!