Skip to content

Instantly share code, notes, and snippets.

@Mizpah
Created November 26, 2014 06:41
Show Gist options
  • Save Mizpah/af902c3d2a2d19b54bbd to your computer and use it in GitHub Desktop.
Save Mizpah/af902c3d2a2d19b54bbd to your computer and use it in GitHub Desktop.
The array, returning an error from code sniffer
/**
* Implements hook_node_info().
*/
function genima_log_node_info() {
// Returns an array defining a new node type.
return array(
'logged_item' => array(
'name' => t('Logged Item'),
'base' => 'genima_logged_item',
'description' => t('A content type for logging items for use in Genima Log'),
'help' => t('Add logged items, actions, notes, bugs and fixes here'),
'has_title' => TRUE,
'title_label' => t('Logged entry title'),
'locked' = TRUE,
),
);
}
@iamsumit
Copy link

Change 'locked' = TRUE, to 'locked' => TRUE,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment