function _cis_shortcodes_add_js

cis7 cis_shortcodes.module _cis_shortcodes_add_js($form)
cle7 cis_shortcodes.module _cis_shortcodes_add_js($form)
elmsmedia7 cis_shortcodes.module _cis_shortcodes_add_js($form)
icor7 cis_shortcodes.module _cis_shortcodes_add_js($form)
meedjum_blog7 cis_shortcodes.module _cis_shortcodes_add_js($form)
mooc7 cis_shortcodes.module _cis_shortcodes_add_js($form)

Helper function to ensure js is added with form element.

1 string reference to '_cis_shortcodes_add_js'
cis_shortcodes_entity_view in sites/all/modules/elmsln_contrib/cis_connector/modules/cis_shortcodes/cis_shortcodes.module
Implements hook_entity_view().

File

sites/all/modules/elmsln_contrib/cis_connector/modules/cis_shortcodes/cis_shortcodes.module, line 174
Handle shortcode generation for use in sites running cis_filter.

Code

function _cis_shortcodes_add_js($form) {
  // add js as we know we'll have a code on the page
  drupal_add_js(drupal_get_path('module', 'cis_shortcodes') . '/cis_shortcodes.js');
  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.