function webform_menu_load in Webform 7.4
Same name and namespace in other branches
- 6.3 webform.module \webform_menu_load()
- 6.2 webform.module \webform_menu_load()
- 7.3 webform.module \webform_menu_load()
Menu loader callback. Load a webform node if the given nid is a webform.
File
- ./
webform.module, line 445 - This module provides a simple way to create forms and questionnaires.
Code
function webform_menu_load($nid) {
if (!is_numeric($nid)) {
return FALSE;
}
$node = node_load($nid);
if (!isset($node->type) || !variable_get('webform_node_' . $node->type, FALSE)) {
return FALSE;
}
return $node;
}