This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->addFieldMapping('router_path')->defaultValue('taxonomy/term/%taxonomy_term'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is an example of a Plugin extending CiteProc. | |
*/ | |
if (module_exists('libraries') && file_exists(libraries_get_path('citeproc-php') . '/CiteProc.php')) { | |
$plugin = array( | |
'title' => t('Example CiteProc'), | |
'description' => t('Example of extending CiteProc styles.'), | |
'class' => 'BiblioStyleExampleCiteProc', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($plugin['assets']['js'] as $js_file) { | |
drupal_add_js($js_file); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'views controller class' => 'EntityDefaultViewsController', | |
'metadata controller class' => 'EntityDefaultMetadataController', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video id="video" preload="none" poster="http://media.w3.org/2010/05/sintel/poster.png" width="640px" height="320px" > | |
<source id="mp4" src="http://media.w3.org/2010/05/sintel/trailer.mp4" type="video/mp4"> | |
<source id="webm" src="http://media.w3.org/2010/05/sintel/trailer.webm" type="video/webm"> | |
<source id="ogv" src="http://media.w3.org/2010/05/sintel/trailer.ogv" type="video/ogg"> | |
<p>Your user agent does not support the HTML5 Video element.</p> | |
</video> | |
<script type="text/javascript"> | |
document._video = document.getElementById("video"); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch ($node->biblio_type) { | |
case 100 : | |
case 101 : | |
case 103 : | |
case 104 : | |
case 105 : | |
case 108 : | |
case 119 : | |
if (!empty($node->biblio_secondary_title)) | |
$tagged .= "%B " . trim($node->biblio_secondary_title) . "\r\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$message_type = entity_create('message_type', array( | |
'name' => time(), | |
'category' => 'message_type', | |
)); | |
$message_type->message_text->value = 'some text'; | |
// $message_type->message_text->format = 'full_html'; | |
$message_type->save(); | |
dpm($message_type); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/ hosts | |
# For local developement | |
127.0.0.1 app.local | |
127.0.0.1 api.app.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add multiple buildpacks. | |
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git | |
# Enviorement indicator | |
heroku config:set NODE_ENV=production | |
# AWS S3 | |
# @see https://devcenter.heroku.com/articles/s3 | |
heroku config:set AWS_ACCESS_KEY_ID=xxx AWS_SECRET_ACCESS_KEY=yyy | |
heroku config:set S3_BUCKET_NAME=appname-assets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IyFBTVIKPJEXFr5meeHgAeev8AAAAIAAAAAAAAAAAAAAAAAAAAA8SHcklmZ54eAB57rwAAAAwAAA | |
AAAAAAAAAAAAAAAAADxVAIi2Znnh4AHnz/AAAACAAAAAAAAAAAAAAAAAAAAAPEj5H5ZmeeHgAeeK | |
8AAAAMAAAAAAAAAAAAAAAAAAAAA8anPgtMzRw+QDb//xMQAzgAAAAP/aYIAAAAAP7a8VQDwsdxv9 | |
ZOmJmO6fHPT3Rynp/aM2uXk8J/99WzN0BQvgPHKJ2LDPIlLeASs/c3MjqMtBBcd6IXJVV7QufIzp | |
gaA8+QMgou/8C8025xt7UWWCSR8wrbfyRvgv3/+FVaCDQDxAkRTTu94BRb6f3lRk7vTDjdHfjUBb | |
kIQ4bAyzlS+gPCcAYKcAwiQHmZU6zMc/oSfmvt2zTHWkOLmxLslef0A8ZcC50BxIS94HPNo1yI08 | |
aG6gVm7nQ9hhW6N6sqfiUDypIyCYoEwmPiIL+ZexMen3YIb6KxF9vc/lg9/Q/ttQPHEis9KpWAAU | |
44fpeIb3VrAAZ9AvtyRYRYHka10AgWA8o66RxWv0AHhntyjD2vXkwNDKcWt7UJuhwiu1qU4KQDxC | |
/rTIY+MRukWK6rMh776rHWLZGd7L6JMFBOz8wmBAPHiokM3QSIh+AcEIuVZguOat4IkJfC/QKQHS | |
6nehsbA8QJCxx+0OEPaIkHosVHPil6YWRklA0sm3SzYrTBf+EDx4fwu7QkAQ55keuJwh5+FmtAm+ |