View source
<?php
function commons_core_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "context" && $api == "context") {
return array(
"version" => 3,
);
}
elseif ($module == "strongarm" && $api == "strongarm") {
return array(
"version" => 1,
);
}
}
function commons_core_imagecache_default_presets() {
$items = array(
'Featured' => array(
'presetname' => 'Featured',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '250',
'height' => '250',
),
),
),
),
'Small' => array(
'presetname' => 'Small',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '150',
'height' => '150',
),
),
),
),
'group_images' => array(
'presetname' => 'group_images',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale',
'data' => array(
'width' => '380',
'height' => '90',
'upscale' => 0,
),
),
),
),
'group_images_featured' => array(
'presetname' => 'group_images_featured',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '136',
'height' => '136',
),
),
'1' => array(
'weight' => '0',
'module' => 'imagecache_canvasactions',
'action' => 'canvasactions_definecanvas',
'data' => array(
'RGB' => array(
'HEX' => '',
),
'under' => 1,
'exact' => array(
'width' => '136',
'height' => '136',
'xpos' => 'center',
'ypos' => 'center',
),
'relative' => array(
'leftdiff' => '',
'rightdiff' => '',
'topdiff' => '',
'bottomdiff' => '',
),
),
),
),
),
'group_images_medium' => array(
'presetname' => 'group_images_medium',
'actions' => array(
'0' => array(
'weight' => '-10',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '66',
'height' => '66',
),
),
'1' => array(
'weight' => '-9',
'module' => 'imagecache_canvasactions',
'action' => 'canvasactions_definecanvas',
'data' => array(
'RGB' => array(
'HEX' => '',
),
'under' => 1,
'exact' => array(
'width' => '66',
'height' => '66',
'xpos' => 'center',
'ypos' => 'center',
),
'relative' => array(
'leftdiff' => '',
'rightdiff' => '',
'topdiff' => '',
'bottomdiff' => '',
),
),
),
),
),
'group_images_showcase' => array(
'presetname' => 'group_images_showcase',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '150',
'height' => '150',
),
),
),
),
'group_images_thumb' => array(
'presetname' => 'group_images_thumb',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '30',
'height' => '30',
),
),
),
),
'member_list_image' => array(
'presetname' => 'member_list_image',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '90',
'height' => '90',
),
),
),
),
'profile_pictures' => array(
'presetname' => 'profile_pictures',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '186',
'height' => '186',
),
),
),
),
'user_picture_meta' => array(
'presetname' => 'user_picture_meta',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '50',
'height' => '50',
),
),
),
),
);
return $items;
}
function commons_core_node_info() {
$items = array(
'group' => array(
'name' => t('Group'),
'module' => 'features',
'description' => t('A group which members can be a part of.'),
'has_title' => '1',
'title_label' => t('Title'),
'has_body' => '1',
'body_label' => t('Body'),
'min_word_count' => '0',
'help' => '',
),
'notice' => array(
'name' => t('Notice'),
'module' => 'features',
'description' => t('A notice is an informative message that is meant to broadcast information to all of the users of the site.'),
'has_title' => '1',
'title_label' => t('Title'),
'has_body' => '1',
'body_label' => t('Body'),
'min_word_count' => '0',
'help' => '',
),
'page' => array(
'name' => t('Page'),
'module' => 'features',
'description' => t('A <em>page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site\'s initial home page.'),
'has_title' => '1',
'title_label' => t('Title'),
'has_body' => '1',
'body_label' => t('Body'),
'min_word_count' => '0',
'help' => '',
),
);
return $items;
}
function commons_core_views_api() {
return array(
'api' => '2',
);
}