Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: ceardach/ceardach_blog
base: 1d8c88400e
...
head fork: ceardach/ceardach_blog
compare: 59235b2e4a
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
20 ceardach_blog.features.field.inc
@@ -175,6 +175,7 @@ function ceardach_blog_field_default_fields() {
'settings' => array(
'display_default' => 1,
'display_field' => 1,
+ 'profile2_private' => FALSE,
'uri_scheme' => 'public',
),
'translatable' => '1',
@@ -219,6 +220,25 @@ function ceardach_blog_field_default_fields() {
'active' => 1,
'module' => 'file',
'settings' => array(
+ 'insert' => 1,
+ 'insert_class' => '',
+ 'insert_default' => 'image_blog_body',
+ 'insert_styles' => array(
+ 'auto' => 0,
+ 'image' => 0,
+ 'image_blog_body' => 'image_blog_body',
+ 'image_blog_full' => 'image_blog_full',
+ 'image_blog_teaser' => 'image_blog_teaser',
+ 'image_blog_thumb' => 'image_blog_thumb',
+ 'image_large' => 0,
+ 'image_medium' => 0,
+ 'image_product_description' => 0,
+ 'image_product_teaser' => 0,
+ 'image_product_thumb' => 0,
+ 'image_thumbnail' => 0,
+ 'link' => 0,
+ ),
+ 'insert_width' => '',
'progress_indicator' => 'throbber',
),
'type' => 'file_generic',
View
96 ceardach_blog.features.inc
@@ -29,6 +29,102 @@ function ceardach_blog_views_api() {
}
/**
+ * Implementation of hook_image_default_styles().
+ */
+function ceardach_blog_image_default_styles() {
+ $styles = array();
+
+ // Exported image style: blog_body
+ $styles['blog_body'] = array(
+ 'name' => 'blog_body',
+ 'effects' => array(
+ 1 => array(
+ 'label' => 'Scale',
+ 'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
+ 'effect callback' => 'image_scale_effect',
+ 'form callback' => 'image_scale_form',
+ 'summary theme' => 'image_scale_summary',
+ 'module' => 'image',
+ 'name' => 'image_scale',
+ 'data' => array(
+ 'width' => '250',
+ 'height' => '',
+ 'upscale' => 1,
+ ),
+ 'weight' => '1',
+ ),
+ ),
+ );
+
+ // Exported image style: blog_full
+ $styles['blog_full'] = array(
+ 'name' => 'blog_full',
+ 'effects' => array(
+ 4 => array(
+ 'label' => 'Scale',
+ 'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
+ 'effect callback' => 'image_scale_effect',
+ 'form callback' => 'image_scale_form',
+ 'summary theme' => 'image_scale_summary',
+ 'module' => 'image',
+ 'name' => 'image_scale',
+ 'data' => array(
+ 'width' => '608',
+ 'height' => '',
+ 'upscale' => 0,
+ ),
+ 'weight' => '1',
+ ),
+ ),
+ );
+
+ // Exported image style: blog_teaser
+ $styles['blog_teaser'] = array(
+ 'name' => 'blog_teaser',
+ 'effects' => array(
+ 2 => array(
+ 'label' => 'Scale',
+ 'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
+ 'effect callback' => 'image_scale_effect',
+ 'form callback' => 'image_scale_form',
+ 'summary theme' => 'image_scale_summary',
+ 'module' => 'image',
+ 'name' => 'image_scale',
+ 'data' => array(
+ 'width' => '150',
+ 'height' => '',
+ 'upscale' => 0,
+ ),
+ 'weight' => '1',
+ ),
+ ),
+ );
+
+ // Exported image style: blog_thumb
+ $styles['blog_thumb'] = array(
+ 'name' => 'blog_thumb',
+ 'effects' => array(
+ 3 => array(
+ 'label' => 'Scale and crop',
+ 'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
+ 'effect callback' => 'image_scale_and_crop_effect',
+ 'form callback' => 'image_resize_form',
+ 'summary theme' => 'image_resize_summary',
+ 'module' => 'image',
+ 'name' => 'image_scale_and_crop',
+ 'data' => array(
+ 'width' => '50',
+ 'height' => '50',
+ ),
+ 'weight' => '1',
+ ),
+ ),
+ );
+
+ return $styles;
+}
+
+/**
* Implementation of hook_node_info().
*/
function ceardach_blog_node_info() {
View
5 ceardach_blog.info
@@ -4,6 +4,7 @@ dependencies[] = "context"
dependencies[] = "ctools"
dependencies[] = "features"
dependencies[] = "file"
+dependencies[] = "image"
dependencies[] = "link"
dependencies[] = "path"
dependencies[] = "pathauto"
@@ -23,6 +24,10 @@ features[field][] = "node-blog-body"
features[field][] = "node-blog-field_file"
features[field][] = "node-blog-field_link"
features[field][] = "node-blog-field_topic"
+features[image][] = "blog_body"
+features[image][] = "blog_full"
+features[image][] = "blog_teaser"
+features[image][] = "blog_thumb"
features[node][] = "blog"
features[taxonomy][] = "topics"
features[user_permission][] = "create blog content"
View
14 ceardach_blog.views_default.inc
@@ -745,6 +745,20 @@ function ceardach_blog_views_default_views() {
$handler->display->display_options['filters']['field_file_fid']['table'] = 'field_data_field_file';
$handler->display->display_options['filters']['field_file_fid']['field'] = 'field_file_fid';
$handler->display->display_options['filters']['field_file_fid']['operator'] = 'not empty';
+ /* Filter criterion: Content: Files (field_file:display) */
+ $handler->display->display_options['filters']['field_file_display']['id'] = 'field_file_display';
+ $handler->display->display_options['filters']['field_file_display']['table'] = 'field_data_field_file';
+ $handler->display->display_options['filters']['field_file_display']['field'] = 'field_file_display';
+ $handler->display->display_options['filters']['field_file_display']['operator'] = '!=';
+ $handler->display->display_options['filters']['field_file_display']['value']['value'] = '0';
+ $handler->display->display_options['filters']['field_file_display']['expose']['operator_id'] = 'field_file_display_op';
+ $handler->display->display_options['filters']['field_file_display']['expose']['label'] = 'Files (field_file:display)';
+ $handler->display->display_options['filters']['field_file_display']['expose']['use_operator'] = FALSE;
+ $handler->display->display_options['filters']['field_file_display']['expose']['operator'] = 'field_file_display_op';
+ $handler->display->display_options['filters']['field_file_display']['expose']['identifier'] = 'field_file_display';
+ $handler->display->display_options['filters']['field_file_display']['expose']['required'] = FALSE;
+ $handler->display->display_options['filters']['field_file_display']['expose']['remember'] = FALSE;
+ $handler->display->display_options['filters']['field_file_display']['expose']['multiple'] = FALSE;
$handler->display->display_options['block_description'] = 'Attached Files';
/* Display: Related Links */

No commit comments for this range

Something went wrong with that request. Please try again.