Commit 282a1869 authored by Nicholas Thompson's avatar Nicholas Thompson
Browse files

Fixing Coder issues - fixing some minor issues.

parent d727c5af
......@@ -365,7 +365,7 @@ function page_title_node_load($nodes) {
// Get a list of node nids to fetch page_title's later
foreach ($nodes AS $node) {
// Check the node type has the 'Show Field' enabled, otherwise there is no point querying for the data
if (isset($settings['page_title_type_'. $node->type]) && $settings['page_title_type_'. $node->type]['show field']) {
if (isset($settings['page_title_type_' . $node->type]) && $settings['page_title_type_' . $node->type]['show field']) {
$nids[] = $node->nid;
}
// Otherwise, set a blank value on the node
......@@ -393,7 +393,7 @@ function page_title_node_load($nodes) {
*/
function page_title_node_insert($node) {
if (user_access('set page title') && isset($node->page_title) && drupal_strlen(trim($node->page_title)) > 0) {
db_insert('page_title')->fields(array('type' => 'node', 'id' => $node->nid, 'page_title' => $node->page_title))->execute();
db_insert('page_title')->fields(array('type' => 'node', 'id' => $node->nid, 'page_title' => $node->page_title))->execute();
}
}
......@@ -761,7 +761,7 @@ function page_title_views_plugins() {
/**
* Implements hook_entity_uuid_save()
* Implements hook_entity_uuid_save().
*/
function page_title_uuid_entity_uuid_save(&$entity, $entity_type) {
if (!empty($entity->page_title)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment