function quotes_node_presave in Quotes 7
Form submit presave handler for importing quotes.
File
- ./
quotes.module, line 1465 - The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.
Code
function quotes_node_presave($node) {
if ($node->type === 'quotes' && ($node->quotes_import_format == 'text' || $node->quotes_import_format == 'fortune')) {
if ($node->op == 'Save') {
quotes_import($node);
}
}
}