| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: node_edit_form_from_node.inc,v 1.1.2.1 2010/07/05 19:32:04 merlinofchaos Exp $ 3 4 /** 5 * @file 6 * Plugin to provide an relationship handler for term from node. 7 */ 8 9 /** 10 * Plugins are described by creating a $plugin array which will be used 11 * by the system that includes this file. 12 */ 13 $plugin = array( 14 'title' => t('Node edit form from node'), 15 'keyword' => 'node_form', 16 'description' => t('Adds node edit form from a node context.'), 17 'required context' => new ctools_context_required(t('Node'), 'node'), 18 'context' => 'ctools_node_edit_form_from_node_context', 19 'settings form' => 'ctools_node_edit_form_from_node_settings_form', 20 ); 21 22 /** 23 * Return a new context based on an existing context. 24 */ 25 function ctools_node_edit_form_from_node_context($context, $conf) { 26 if (empty($context->data)) { 27 return ctools_context_create_empty('node_edit_form', NULL); 28 } 29 30 if (isset($context->data->nid)) { 31 return ctools_context_create('node_edit_form', $context->data); 32 } 33 } 34 35 /** 36 * Settings form for the relationship. 37 */ 38 function ctools_node_edit_form_from_node_settings_form($conf) { 39 // This function intentionally left blank. 40 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |