parent
a93b2a1740
commit
ce4993d29c
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
// $Id$
|
||||
|
||||
function taxonomy_feed() {
|
||||
global $id, $or, $and, $type;
|
||||
|
@ -75,7 +76,7 @@
|
|||
}
|
||||
|
||||
function taxonomy_save_vocabulary($edit) {
|
||||
$data = array("name" => $edit["name"], "types" => implode(",", $edit["types"]), "description" => $edit["description"], "multiple" => $edit["multiple"], "required" => $edit["required"], "hierarchy" => $edit["hierarchy"], "relations" => $edit["relations"], "weight" => $edit["weight"]);
|
||||
$data = array("name" => $edit["name"], "types" => @implode(",", $edit["types"]), "description" => $edit["description"], "multiple" => $edit["multiple"], "required" => $edit["required"], "hierarchy" => $edit["hierarchy"], "relations" => $edit["relations"], "weight" => $edit["weight"]);
|
||||
|
||||
if ($edit["vid"] && $edit["name"]) {
|
||||
db_query("UPDATE vocabulary SET ". _prepare_update($data) ." WHERE vid = '". check_input($edit["vid"]) ."'");
|
||||
|
@ -102,7 +103,7 @@
|
|||
$vocabulary_id = $edit["vid"];
|
||||
}
|
||||
$vocabulary = taxonomy_get_vocabulary($vocabulary_id);
|
||||
$form .= form_textfield("Term name", "name", $edit["name"], 50, 64, "Required. The name for this term. Example: 'Linux'.");
|
||||
$form = form_textfield("Term name", "name", $edit["name"], 50, 64, "Required. The name for this term. Example: 'Linux'.");
|
||||
$form .= form_textarea("Description", "description", $edit["description"], 60, 5, "Optional. Description of the term, can be used by modules.");
|
||||
|
||||
if ($vocabulary->relations) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
// $Id$
|
||||
|
||||
function taxonomy_feed() {
|
||||
global $id, $or, $and, $type;
|
||||
|
@ -75,7 +76,7 @@
|
|||
}
|
||||
|
||||
function taxonomy_save_vocabulary($edit) {
|
||||
$data = array("name" => $edit["name"], "types" => implode(",", $edit["types"]), "description" => $edit["description"], "multiple" => $edit["multiple"], "required" => $edit["required"], "hierarchy" => $edit["hierarchy"], "relations" => $edit["relations"], "weight" => $edit["weight"]);
|
||||
$data = array("name" => $edit["name"], "types" => @implode(",", $edit["types"]), "description" => $edit["description"], "multiple" => $edit["multiple"], "required" => $edit["required"], "hierarchy" => $edit["hierarchy"], "relations" => $edit["relations"], "weight" => $edit["weight"]);
|
||||
|
||||
if ($edit["vid"] && $edit["name"]) {
|
||||
db_query("UPDATE vocabulary SET ". _prepare_update($data) ." WHERE vid = '". check_input($edit["vid"]) ."'");
|
||||
|
@ -102,7 +103,7 @@
|
|||
$vocabulary_id = $edit["vid"];
|
||||
}
|
||||
$vocabulary = taxonomy_get_vocabulary($vocabulary_id);
|
||||
$form .= form_textfield("Term name", "name", $edit["name"], 50, 64, "Required. The name for this term. Example: 'Linux'.");
|
||||
$form = form_textfield("Term name", "name", $edit["name"], 50, 64, "Required. The name for this term. Example: 'Linux'.");
|
||||
$form .= form_textarea("Description", "description", $edit["description"], 60, 5, "Optional. Description of the term, can be used by modules.");
|
||||
|
||||
if ($vocabulary->relations) {
|
||||
|
|
Loading…
Reference in New Issue