You are here

function cpn_content_extra_fields in Code per Node 6

Implementation of hook_content_extra_fields().

File

./cpn.module, line 455
Primary hook implementations.

Code

function cpn_content_extra_fields($type_name) {
  if (variable_get('cpn_css_' . $type_name, FALSE) || variable_get('cpn_js_' . $type_name, FALSE)) {
    $extras['cpn'] = array(
      'label' => t('Code Per Node'),
      'description' => t('Custom CSS and/or JS fields.'),
      'weight' => 5,
    );
    return $extras;
  }
}