function render_entity($entity, $view_mode, $langcode = NULL, $args = array(), $address = NULL, $extra_contexts = array()) { $info = parent::render_entity($entity, $view_mode, $langcode, $args, $address, $extra_contexts); if (!empty($entity->promote)) { $info['classes_array'][] = 'node-promoted'; } if (!empty($entity->sticky)) { $info['classes_array'][] = 'node-sticky'; } if (empty($entity->status)) { $info['classes_array'][] = 'node-unpublished'; } return $info; }