function vefl_get_layouts in Views exposed form layout 7
Returns array of layouts for exposed form.
Parameters
string $layout_id: Will returns info about one layout if layout id passed.
Return value
array An array contains info about exposed form layouts.
See also
2 calls to vefl_get_layouts()
- vefl_plugin_exposed_form_basic::options_form in views/
vefl_plugin_exposed_form_basic.inc - Provide a form for setting options.
- vefl_plugin_exposed_form_bef::options_form in views/
vefl_plugin_exposed_form_bef.inc - Provide a form for setting options.
File
- ./
vefl.module, line 104 - Provides functionality to output Views exposed filters in layout.
Code
function vefl_get_layouts($layout_id = '') {
$layouts =& drupal_static(__FUNCTION__, array());
if (empty($layouts)) {
$layouts = module_invoke_all('vefl_layouts');
}
return !empty($layout_id) && !empty($layouts[$layout_id]) ? $layouts[$layout_id] : $layouts;
}