context['panelizer'])) { return NULL; } if ($display->context['panelizer']->type[0] == 'entity:node') { // Allow or deny IPE access based on node type. return $display->context['panelizer']->data->type == 'awesome_page'; } // Otherwise, deny access to everything! return FALSE; }