Executes the plugin.
Overrides ExecutableInterface::execute
public function execute($node = NULL) {
foreach ($this->configuration['keywords'] as $keyword) {
$elements = node_view(clone $node);
if (strpos(drupal_render($elements), $keyword) !== FALSE || strpos($node
->label(), $keyword) !== FALSE) {
$node->status = NODE_NOT_PUBLISHED;
$node
->save();
break;
}
}
}