function panels_context_get_form in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/plugins.inc \panels_context_get_form()
Return the first context with a form id from a list of contexts.
1 call to panels_context_get_form()
- panels_page_view_page in panels_page/
panels_page.module - Page callback to view a panel page.
File
- includes/
plugins.inc, line 1211 - plugins.inc
Code
function panels_context_get_form($contexts) {
foreach ($contexts as $context) {
if (!empty($context->form_id)) {
return $context;
}
}
}