You are here

function _shrinktheweb_custom_settings in ShrinkTheWeb 8

Generate custom request options for field formatters.

Parameters

$_variables:

Return value

mixed

7 calls to _shrinktheweb_custom_settings()
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_default in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] Title as link'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_plain in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] URL as plain text'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_separate in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] Separate title and URL'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_short in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] Short as link with title "Link"'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_url in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] URL, as link'.

... See full list

File

./shrinktheweb.module, line 256

Code

function _shrinktheweb_custom_settings($_variables) {
  $_options = array();
  if (!is_null($_variables['custom_width'])) {
    $_options['SizeCustom'] = $_variables['custom_width'];
  }
  if (!is_null($_variables['full_length'])) {
    $_options['FullSizeCapture'] = $_variables['full_length'];
  }
  if (!is_null($_variables['max_height'])) {
    $_options['MaxHeight'] = $_variables['max_height'];
  }
  if (!is_null($_variables['native_resolution'])) {
    $_options['NativeResolution'] = $_variables['native_resolution'];
  }
  if (!is_null($_variables['widescreen_resolution_y'])) {
    $_options['WidescreenY'] = $_variables['widescreen_resolution_y'];
  }
  if (!is_null($_variables['delay'])) {
    $_options['Delay'] = $_variables['delay'];
  }
  if (!is_null($_variables['quality'])) {
    $_options['Quality'] = $_variables['quality'];
  }
  return $_options;
}