You are here

function _emfield_display_limit in Embedded Media Field 5

2 calls to _emfield_display_limit()
emimport_import_validate in contrib/emimport/emimport.module
_emimport_import_codes in contrib/emimport/emimport.module

File

contrib/emimport/emimport.module, line 729

Code

function _emfield_display_limit($module, $type, $field, $provider) {
  $limit = variable_get('emimport_global_display', 0);
  if (!$limit) {
    $limit = variable_get('emimport_' . $module . '_display', 0);
  }
  if (!$limit) {
    $limit = variable_get('emimport_' . $module . '_type_display_' . $type, 0);
  }
  if (!$limit) {
    $limit = variable_get('emimport_' . $module . '_display_' . $provider, 0);
  }
  return $limit;
}