public static function NodeHelper::unpromoteNode in Node expire 7.2
Removes node from front page by $nid.
1 call to NodeHelper::unpromoteNode()
- ActionsHandler::doAction in src/
Module/ CommonExpire/ Actions/ ActionsHandler.php - Executes particular action with the node..
File
- src/
Module/ CommonExpire/ Node/ NodeHelper.php, line 78 - NodeHelper class.
Class
- NodeHelper
- NodeHelper class.
Namespace
Drupal\node_expire\Module\CommonExpire\NodeCode
public static function unpromoteNode($nid) {
// Load the node object.
$node = node_load($nid);
// Set promote property to 0.
$node->promote = 0;
// Save the node.
node_save($node);
}