You are here

function coder_upgrade_js_weight in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/conversions/call.inc \coder_upgrade_js_weight()

Returns the new js weight parameter.

Parameters

string $type:

Return value

string

1 call to coder_upgrade_js_weight()
coder_upgrade_upgrade_call_drupal_add_js_alter in coder_upgrade/conversions/call.inc
Implements hook_upgrade_call_drupal_add_js_alter().

File

coder_upgrade/conversions/call.inc, line 785
Provides conversion routines applied to function calls.

Code

function coder_upgrade_js_weight($type) {
  switch ($type) {
    case 'core':
      return 'JS_LIBRARY';
    case 'module':
      return 'JS_DEFAULT';
    case 'theme':
      return 'JS_THEME';
    default:
      return 'JS_DEFAULT';
  }
}