Skip to content

Instantly share code, notes, and snippets.

@ericaschroder
Created June 26, 2012 19:31
Show Gist options
  • Save ericaschroder/2998276 to your computer and use it in GitHub Desktop.
Save ericaschroder/2998276 to your computer and use it in GitHub Desktop.
add to acquia_com_toolkit.module
// Adds additional modal form preset for new size.
ctools_modal_add_js();
$throbber = theme('image', array('path' => ctools_image_path('loading_animation.gif', 'modal_forms'), 'alt' => t('Loading...'), 'title' => t('Loading')));
$js_settings = array(
'modal-popup-small-tall' => array(
'modalSize' => array(
'type' => 'fixed',
'width' => 300,
'height' => auto,
),
'modalOptions' => array(
'opacity' => 0.85,
'background' => '#000',
),
'animation' => 'fadeIn',
'modalTheme' => 'ModalFormsPopup',
'throbber' => $throbber,
'closeText' => t('Close'),
),
);
drupal_add_js($js_settings, 'setting');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment