function asset_wizard_js_settings in Asset 6
Same name and namespace in other branches
- 5.2 asset_wizard.module \asset_wizard_js_settings()
1 call to asset_wizard_js_settings()
- theme_asset_wizard_textarea_link in ./
asset_wizard.module - Theme the textarea link
File
- ./
asset_wizard.module, line 643 - Wizard-style interface for Asset.
Code
function asset_wizard_js_settings() {
static $run = FALSE;
if ($run) {
return;
}
$settings = array(
'height' => 400,
'width' => 560,
'url' => url('asset/wizard'),
'title' => t('Asset Wizard'),
'assetUrl' => url('asset'),
'noIcon' => base_path() . drupal_get_path('module', 'asset_Wizard') . '/icons/missing.png',
);
drupal_add_js(array(
'assetWizard' => $settings,
), 'setting');
$run = TRUE;
}