| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: node_add.inc,v 1.3.2.4 2010/10/15 22:56:47 merlinofchaos Exp $ 3 4 /** 5 * @file 6 * 7 * Plugin to provide an argument handler for a Node add form 8 */ 9 10 /** 11 * Plugins are described by creating a $plugin array which will be used 12 * by the system that includes this file. 13 */ 14 $plugin = array( 15 'title' => t("Node add form: node type"), 16 // keyword to use for %substitution 17 'keyword' => 'node_type', 18 'description' => t('Creates a node add form context from a node type argument.'), 19 'context' => 'ctools_node_add_context', 20 ); 21 22 /** 23 * Discover if this argument gives us the node we crave. 24 */ 25 function ctools_node_add_context($arg = NULL, $conf = NULL, $empty = FALSE) { 26 // If unset it wants a generic, unfilled context. 27 if (!isset($arg)) { 28 return ctools_context_create_empty('node_add_form'); 29 } 30 31 return ctools_context_create('node_add_form', $arg); 32 } 33
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 |