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
<a href="/ajax/popup/node/[NID]/nojs" class="use-ajax">SOME_TEXT_HERE</a> |
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
function custom_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'WEBFORM_ID') { | |
$form['submitted']['WEBFORM_FIELD_NAME']['#empty_option'] = 'TEXT'; | |
} | |
} |
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
drupal_add_js(array('VAR_JS' => $VAR_PHP), 'setting'); | |
// Alternative | |
drupal_add_js(array('CUSTOM_MODULE' => array('KEY' => 'value')), 'setting'); |
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
function custom_menu() { | |
$items = array(); | |
$items['ajax/custom_module/custom_action/%/%'] = array( | |
'title' => 'Title', | |
'delivery callback' => 'ajax_deliver', // important here! | |
'page callback' => 'custom_module__pagecallback', | |
'page arguments' => array(3,4), // index starts with zero | |
'type' => MENU_CALLBACK, |
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
.ajax-progress-throbber, .ajax-progress-throbber .message, .ajax-progress-throbber .throbber { | |
} |
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
var specials = $('.specials-list ul li'); | |
if (specials.length) { | |
specials.parent().carouFredSel({ | |
items: { | |
width: 590, | |
visible: 1 | |
}, | |
pagination: { |
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 print $vh['var_name']; ?> |
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
webform-client-form-ID|name_of_the_field|Label to put |
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
<a class="ctools-use-modal ctools-modal-modal-popup-STYLE-OF-THE-WEBFORM(small, medium, large)" | |
href="/modal_forms/nojs/webform/ID-OF-THE-WEBFORM">Open a webform</a> |
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
regions[name_of_the_region] = Description of the block |