This commit is contained in:
Oliver Davies 2017-07-11 18:57:51 +01:00
parent 0692d8ff00
commit 47e2ffcfda
247 changed files with 409 additions and 383 deletions

View file

@ -84,7 +84,7 @@
<main class="col-md-9">
<h1>How to add a date popup calendar onto a custom form</h1>
<p class="posted">23rd May 2012</p>
<p class="posted text-light">23rd May 2012</p>
<p>First, I need to download the <a href="http://drupal.org/project/date" title="Date module on Drupal.org">Date</a> module, and make my module dependent on date_popup by adding the following line into my module's .info file.</p>

View file

@ -84,7 +84,7 @@
<main class="col-md-9">
<h1>Checkout a specific revision from SVN from the command line</h1>
<p class="posted">23rd May 2012</p>
<p class="posted text-light">23rd May 2012</p>
<p>If you're checking out the repository for the first time:</p>

View file

@ -84,7 +84,7 @@
<main class="col-md-9">
<h1>Forward one domain to another using mod_rewrite and .htaccess</h1>
<p class="posted">23rd May 2012</p>
<p class="posted text-light">23rd May 2012</p>
<p>Within the mod_rewrite section of your .htaccess file, add the following lines:</p>

View file

@ -84,7 +84,7 @@
<main class="col-md-9">
<h1>Prevent Apache from displaying text files within a web browser</h1>
<p class="posted">23rd May 2012</p>
<p class="posted text-light">23rd May 2012</p>
<p>When you download <a href="http://drupal.org/project/drupal">Drupal</a>, there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially <code>CHANGELOG.txt</code> as that includes the exact version of Drupal you are running and could therefore have security implications.</p>

View file

@ -84,7 +84,7 @@
<main class="col-md-9">
<h1>Writing a .info file for a Drupal 7 theme</h1>
<p class="posted">23rd May 2012</p>
<p class="posted text-light">23rd May 2012</p>
<pre><code class="language-ini">name = My Theme
description = A description of my theme

View file

@ -84,7 +84,7 @@
<main class="col-md-9">
<h1>Dividing Drupal&#039;s process and preprocess functions into separate files</h1>
<p class="posted">24th May 2012</p>
<p class="posted text-light">24th May 2012</p>
<p>If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the <a href="http://drupal.org/project/omega" title="The Omega theme on Drupal.org">Omega theme</a>, I've started separating my process and preprocess functions into their own files. For example, mytheme_preprocess_node can be placed within a preprocess/node.inc file, and mytheme_process_page can be placed within process/page.inc.</p>