drupal

Manually printing a Drupal view with PHP

Tags: 

In order to manually print a view you can run the following code:

views_get_view('my_view_machine_name')

There are some cases where you may want to alter the view before it is transformed into HTML. You can achieve that with the following code.

Install Drush and Drush Make install on Mac OS X Snow Leopard

Tags: 
  • Download the latest version of Drush and move the unacrchived folder, "drush," to your Applications folder (or any folder of your choice).
  • Open the Terminal application.
  • Open the "drush" folder and drag the file named "drush" into an active terminal window.
  • Make the drush file executable with this command.

chmod u+x path/to/drush

Subscribe to RSS - drupal