Blog Archives

Drupal 7 Views: link content to a file path

Let’s say we have a content type with a PDF file, and we want to link the body text of the node to the file. In the view: FORMAT: Show: Fields FIELDS Content: PDF file Exclude from display: Checked Formatter:

Tagged with:
Posted in drupal

Drupal 7 disable submit button

Here’s how to disable the submit and preview buttons in a Drupal module. $form[‘actions’][‘submit’][‘#disabled’] = TRUE; $form[‘actions’][‘preview’][‘#disabled’] = TRUE; Reference: http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#actions

Tagged with:
Posted in drupal