You are here

function tinybrowser_get_window_width in TinyBrowser 7

2 calls to tinybrowser_get_window_width()
tinybrowser_set_js_variables in ./tinybrowser.module
tinybrowser_wysiwyg_plugin in ./tinybrowser.module
Implements hook_wysiwyg_plugin().

File

./tinybrowser.module, line 49

Code

function tinybrowser_get_window_width() {
  $popup_win_size = variable_get('tinybrowser_popup_window_size', '770x480');
  $popup_win_size = preg_replace('/\\s*/', '', $popup_win_size);
  $popup_win_size = strtolower($popup_win_size);
  $win_size = explode('x', $popup_win_size);
  return intval($win_size[0]);
}