You are here

function panels_context_get_form in Panels 6.2

Same name and namespace in other branches
  1. 5.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_prepare_panels_render in panels_page/panels_page.render.inc

File

includes/plugins.inc, line 1225
plugins.inc

Code

function panels_context_get_form($contexts) {
  if (!empty($contexts)) {
    foreach ($contexts as $context) {
      if (!empty($context->form_id)) {
        return $context;
      }
    }
  }
}