You are here

function gallery_assist_ct_settings in Gallery Assist 7

Get content types gallery settings and allow other modules to change or increase them.

Parameters

$type: A string containing the requested content type or default if empty.

Return value

An array with the GA settings.

File

./gallery_assist.module, line 181
Extend drupal with gallery functionalities. Manage galleries.

Code

function gallery_assist_ct_settings($type = 'default') {
  module_load_include('inc', 'gallery_assist', 'gallery_assist_variables');
  $settings = variable_get("gallery_assist_{$type}_data", array());
  drupal_alter('gallery_assist_ct_settings', $settings);
  return $settings;
}