You are here

function vefl_layout_module in Views exposed form layout 7

Returns name of module which provides layout with given layout_id.

Parameters

string $layout_id: Name of layout.

Return value

string Module name.

2 calls to vefl_layout_module()
vefl_views_exposed_form_preprocess in includes/vefl.inc
A theme preprocess function for views_exposed_form.
_vefl_form_theme_functions in ./vefl.module
Generates theme functions by given parameters.

File

./vefl.module, line 121
Provides functionality to output Views exposed filters in layout.

Code

function vefl_layout_module($layout_id) {
  $module = 'vefl';
  if (module_exists('panels') && substr($layout_id, 0, 7) == 'panels_') {
    $module = 'panels';
  }
  if (module_exists('ds') && substr($layout_id, 0, 3) == 'ds_') {
    $module = 'ds';
  }
  return $module;
}