You are here

function panels_node_validate in Panels 6.3

Same name and namespace in other branches
  1. 5.2 panels_node/panels_node.module \panels_node_validate()
  2. 6.2 panels_node/panels_node.module \panels_node_validate()

Implementation of hook_validate().

File

panels_node/panels_node.module, line 229
panels_node.module

Code

function panels_node_validate($node) {
  if (!$node->nid && empty($node->panels_node['layout'])) {
    form_set_error('', t('Please select a layout.'));
  }
}