You are here

function galleria_content_extra_fields in Galleria 6

Implementation of hook_content_extra_fields().

CCK hook to allow sorting of the gallery display (from content.module). Only applies to Gallerias built from attached files. ImageField gallerias have their own built in mechanism.

File

./galleria.module, line 186
Turns a node into a Galleria image gallery.

Code

function galleria_content_extra_fields($type_name) {
  if (!empty($type_name) && variable_get("galleria_{$type_name}", 0) == 1) {
    return array(
      'galleria' => array(
        'label' => t('Gallery'),
        'description' => t('The Galleria display.'),
        'weight' => -10,
      ),
    );
  }
}