Skip to content

Instantly share code, notes, and snippets.

@soulston
Created November 28, 2012 14:49
Show Gist options
  • Save soulston/4161754 to your computer and use it in GitHub Desktop.
Save soulston/4161754 to your computer and use it in GitHub Desktop.
nopremium patch
/**
* Implementation of hook_field_extra_fields().
*
* patch http://drupal.org/node/1285100
*/
function nopremium_field_extra_fields() {
$extra = array();
foreach (node_type_get_types() as $type) {
$extra['node'][$type->type] = array(
'display' => array(
'nopremium_message' => array(
'label' => t('Premium message'),
'description' => t('Node Option Premium module message.'),
'weight' => 1,
),
),
);
}
return $extra;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment