Delete a word.
More...
Delete a word.
Call: delete_word.php?wid=[wordid]&tid=[textid]
PHP version 8.1
◆ delete_word_from_database()
delete_word_from_database |
( |
|
$wid | ) |
|
Edit the word from the database.
- Parameters
-
string | $wid | ID of the word to delete |
- Returns
- string Some edit message, number of affected rows or error message
@global string $tbpref
◆ delete_word_javascript()
delete_word_javascript |
( |
|
$wid, |
|
|
|
$tid |
|
) |
| |
Do the JavaScript action for changing display of the word.
- Parameters
-
string | $wid | ID of the word to delete |
int | $tid | Text ID |
- Returns
- void
Make the visual effects to delete a word from the page.
- Parameters
-
- Returns
- {undefined}
◆ delete_word_page_content()
delete_word_page_content |
( |
|
$tid, |
|
|
|
$wid, |
|
|
|
$term, |
|
|
|
$m1 |
|
) |
| |
Make the HTML content of the page when deleting a word.
- Parameters
-
int | $tid | Text ID |
string | $wid | ID of the word to delete |
string | $term | The deleted word |
string | $m1 | Some edit message, number of affected rows or error message |
- Returns
- void
◆ do_delete_word()
do_delete_word |
( |
|
$textid, |
|
|
|
$wordid |
|
) |
| |
Complete workflow for deleting a word. It edits the database, show the success message and do JavaScript action to change its display.
- Parameters
-
int | $textid | ID of the affected text |
string | $wordid | ID of the word to delete |
- Returns
- void
- Since
- 2.0.4-fork
◆ get_term()
Return the term corresponding to the ID.
- Parameters
-
- Returns
- string A word
@global string $tbpref