Use prism for code syntax highlighting

This commit is contained in:
Oliver Davies 2017-03-16 08:09:52 +00:00
parent 356c9dca43
commit adf3c67355
54 changed files with 471 additions and 324 deletions

View file

@ -18,11 +18,13 @@ How to use a date popup calendar within your custom module.
{% block content %}
First, I need to download the [Date](http://drupal.org/project/date "Date module on Drupal.org") module, and make my module dependent on date_popup by adding the following line into my module's .info file.
dependencies[] = date_popup
```language-ini
dependencies[] = date_popup
```
Within my form builder function:
~~~php
```language-php
$form['date'] = array(
'#title' => t('Arrival date'),
@ -38,5 +40,5 @@ $form['date'] = array(
// Default value must be in 'Y-m-d' format.
'#default_value' => date('Y-m-d', time()),
);
~~~
```
{% endblock %}