diff a/colorbox.admin.inc b/colorbox.admin.inc
14,15d13
<   $colorbox_path = colorbox_get_path();
<
25c23
<     '#default_value' => $colorbox_path,
---
>     '#default_value' => colorbox_get_path(),
133,142c131
<   $colorbox_styles = array(
<     'default' => t('Default'),
<     'stockholmsyndrome' => t('Stockholm Syndrome'),
<     $colorbox_path . '/example1' => t('Example 1'),
<     $colorbox_path . '/example2' => t('Example 2'),
<     $colorbox_path . '/example3' => t('Example 3'),
<     $colorbox_path . '/example4' => t('Example 4'),
<     $colorbox_path . '/example5' => t('Example 5'),
<     'none' => t('None'),
<   );
---
>   $colorbox_styles = _colorbox_get_styles();
346a336,368
>  * Retrieve all styles that are available
>  */
> function _colorbox_get_styles() {
>   $colorbox_path = colorbox_get_path();
>   $colorbox_styles = array(
>     'default' => t('Default'),
>     'stockholmsyndrome' => t('Stockholm Syndrome'),
>     $colorbox_path . '/example1' => t('Example 1'),
>     $colorbox_path . '/example2' => t('Example 2'),
>     $colorbox_path . '/example3' => t('Example 3'),
>     $colorbox_path . '/example4' => t('Example 4'),
>     $colorbox_path . '/example5' => t('Example 5'),
>   );
>
>   // Include custom styles in the theme folder.
>   if (!function_exists('file_scan_directory')) {
>     require_once DRUPAL_ROOT . '/includes/file.inc';
>   }
>   $theme_path = drupal_get_path('theme', variable_get('theme_default', 'bartik'));
>   if (is_dir($theme_path . '/colorbox')) {
>     $files = file_scan_directory($theme_path . '/colorbox', '/.*$/', array('recurse' => FALSE));
>     foreach ($files as $file) {
>       if (is_dir($file->uri)) {
>         $colorbox_styles[$file->uri] = ucfirst($file->name);
>       }
>     }
>   }
>
>   $colorbox_styles['none'] = t('None');
>   return $colorbox_styles;
> }
>
> /**
