public static function ShareaholicContentSettings::delete in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 content_settings.php \ShareaholicContentSettings::delete()
Implements hook_node_delete().
Delete the content settings for a node
Parameters
Object $node the node that will be deleted:
1 call to ShareaholicContentSettings::delete()
- shareaholic_node_delete in includes/
node.php - Implements hook_node_delete(). When a node is deleted, notify CM
File
- ./
content_settings.php, line 127
Class
- ShareaholicContentSettings
- An interface to the Shareaholic Content Settings database table
Code
public static function delete($node) {
if (!db_table_exists('shareaholic_content_settings')) {
return;
}
db_delete('shareaholic_content_settings')
->condition('nid', $node->nid)
->execute();
}