function _nodewords_set in Nodewords: D6 Meta Tags 5
Update or insert tags in the table
6 calls to _nodewords_set()
- nodewords_frontpage_form_submit in ./
nodewords.module - nodewords_nodeapi in ./
nodewords.module - Implementation of hook_nodeapi().
- nodewords_panels_handler in ./
nodewords.module - Handling of edit/delete form for panels.
- nodewords_panels_page_handler in ./
nodewords.module - Handling of edit/delete form for panels (v2).
- nodewords_taxonomy in ./
nodewords.module - Implementation of hook_taxonomy().
File
- ./
nodewords.module, line 631 - Assign META tags to nodes, vocabularies, terms and pages.
Code
function _nodewords_set($type, $id, $tags) {
foreach ($tags as $name => $content) {
if (empty($content)) {
_nodewords_delete_tag($type, $id, $name);
}
else {
_nodewords_update_tag($type, $id, $name, $content);
}
}
}