You are here

function node_gallery_relationship_settings_defaults in Node Gallery 6.3

6 calls to node_gallery_relationship_settings_defaults()
node_gallery_get_relationship in ./node_gallery.inc
Fetches a gallery-to-image relationship from the database.
node_gallery_install_default_settings in ./node_gallery.install
Write the default relationship to the database. This function cannot be called from hook_install, because Drupal will not know the schema of a module that has not yet been installed!
node_gallery_relationship_content_types_form_submit in ./node_gallery.admin.inc
Submit handler for relationship settings form
node_gallery_relationship_settings_form_submit in ./node_gallery.admin.inc
Submit handler for relationship settings form
node_gallery_update_6302 in ./node_gallery.install
Set a default navigator sort view

... See full list

File

./node_gallery.inc, line 134
Shared functions for node_gallery

Code

function node_gallery_relationship_settings_defaults() {
  $settings = array(
    'name' => 'Node Gallery Default',
    'view_gallery_full_image_display' => serialize(array(
      'name' => 'node_gallery_gallery_image_views',
      'display_id' => 'page_1',
    )),
    'view_gallery_teaser_view_image_display' => serialize(array(
      'name' => 'node_gallery_gallery_image_views',
      'display_id' => 'page_2',
    )),
    'view_navigator_image_display' => serialize(array(
      'name' => 'node_gallery_gallery_image_views',
      'display_id' => 'page_7',
    )),
    'display_navigator' => 1,
    'node_images_page_fragment' => 0,
    'manage_images_fields' => array(
      'title' => 'title',
    ),
    'manage_images_per_page' => 20,
    'manage_images_show_gallery_list' => TRUE,
    'manage_images_enable_rotation' => TRUE,
  );
  drupal_alter('node_gallery_relationship_default_settings', $settings);
  return $settings;
}