| 1 |
<?php |
<?php |
| 2 |
// $Id: nodewords.admin.inc,v 1.1.2.107 2009/11/23 00:28:12 kiam Exp $ |
// $Id: nodewords.admin.inc,v 1.1.2.108 2009/11/23 08:28:09 kiam Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 134 |
*/ |
*/ |
| 135 |
function nodewords_pages_edit($form_state, $page = NULL) { |
function nodewords_pages_edit($form_state, $page = NULL) { |
| 136 |
if (!isset($page)) { |
if (!isset($page)) { |
| 137 |
$page = new stdClass(); |
$page = (object) array( |
| 138 |
$page->name = t('Custom page'); |
'name' => t('Custom page'), |
| 139 |
$page->path = ''; |
'path' => '', |
| 140 |
$page->weight = 0; |
'weight' => 0, |
| 141 |
$page->enabled = 1; |
'enabled' => 1, |
| 142 |
$page->tags = array(); |
'tags' => array(), |
| 143 |
|
); |
| 144 |
} |
} |
| 145 |
else { |
else { |
| 146 |
$form['pid'] = array( |
$form['pid'] = array( |