Book Image

Drupal 7 Mobile Web Development Beginner's Guide

By : Tom Stovall
Book Image

Drupal 7 Mobile Web Development Beginner's Guide

By: Tom Stovall

Overview of this book

<p>How disappointing is it to log on to a website for a product or business you love only to discover the feature you were drawn to doesn’t work on your mobile or tablet? Drupal has brand new features to adapt your existing site into a mobile site that will keep your customers coming back.</p> <p>The Drupal Mobile Web Development Beginner's Guide follows a humble 'Mom &amp; Pop' restaurant website which gets a makeover complete with cutting edge features that play to mobile, tablet and desktop audiences. By following the fun example, you will finish the book having effortlessly adapted your website so that it is accessible and, more importantly, looks good and functions well, on any mobile device.</p> <p>Restaurant websites are notoriously horrible to navigate and our Mom &amp; Pop example is wellintentioned but no exception to this rule. We bring this site out of the early 1990's with cutting edge development practices and a team development workflow. This pizza chain goes mobile with location services, audio, video, charting and mapping worthy of any multi-million dollar site. Each chapter examines the way the site works and shows you how to move the existing content and functionality into reusable features.</p>
Table of Contents (18 chapters)
Drupal 7 Mobile Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Pop quiz Answers

Building a Drupal website with Drush Make


First, let's take a look at the .make file for this website and learn a little about what each line is telling Drush Make to do. In the dpk directory that you created in a previous step, open the file dpk.make in a text editor of your choice. You should see the following code:

core = 7.x
api = 2
;core
""projects[drupal][type] = "core"
projects[drupal][download][type] = "git"
projects[drupal][download][tag] = "7.9"
projects[drupal][download][url] = "http://git.drupal.org/project/drupal. git"""

The first few lines seem easy enough. We're telling the drush_make command that we're using Drupal 7.0 core, Drush Make API 2, and then giving drush_make a specific method for downloading the Drupal 7.0 core. Notice that, in this instance, we've linked the project to a specific filename and a specific version of Drupal.

Note

The first law of Drupal states, "Thou shalt not hack the core". The second law is similar; it states, "Seriously, dude, don't hack the core...