Skip to content

Commit

Permalink
Adding colorizer module, colorizer settings, and admin theme settings…
Browse files Browse the repository at this point in the history
… to dkan_sitewide
  • Loading branch information
janette committed Apr 22, 2014
1 parent 13cc144 commit a069d80
Showing 5 changed files with 108 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
/**
* @file
* dkan_sitewide.features.field_instance.inc
*/

/**
* Implements hook_field_default_field_instances().
*/
function dkan_sitewide_field_default_field_instances() {
$field_instances = array();

// Exported field_instance: 'node-page-body'
$field_instances['node-page-body'] = array(
'bundle' => 'page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'display_summary' => TRUE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 31,
),
);

// Translatables
// Included for use with string extractors like potx.
t('Body');

return $field_instances;
}
24 changes: 12 additions & 12 deletions modules/dkan/dkan_sitewide/dkan_sitewide.features.filter.inc
Original file line number Diff line number Diff line change
@@ -14,34 +14,34 @@ function dkan_sitewide_filter_default_formats() {
$formats['html'] = array(
'format' => 'html',
'name' => 'HTML',
'cache' => '1',
'status' => '1',
'weight' => '0',
'cache' => 1,
'status' => 1,
'weight' => 0,
'filters' => array(
'filter_markdown' => array(
'weight' => '-11',
'status' => '1',
'weight' => -11,
'status' => 1,
'settings' => array(),
),
'filter_html' => array(
'weight' => '-10',
'status' => '1',
'weight' => -10,
'status' => 1,
'settings' => array(
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <p>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
),
),
'filter_url' => array(
'weight' => '0',
'status' => '1',
'weight' => 0,
'status' => 1,
'settings' => array(
'filter_url_length' => '72',
'filter_url_length' => 72,
),
),
'filter_htmlcorrector' => array(
'weight' => '10',
'status' => '1',
'weight' => 10,
'status' => 1,
'settings' => array(),
),
),
6 changes: 1 addition & 5 deletions modules/dkan/dkan_sitewide/dkan_sitewide.features.inc
Original file line number Diff line number Diff line change
@@ -7,14 +7,10 @@
/**
* Implements hook_ctools_plugin_api().
*/
function dkan_sitewide_ctools_plugin_api() {
list($module, $api) = func_get_args();
function dkan_sitewide_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
}

/**
22 changes: 12 additions & 10 deletions modules/dkan/dkan_sitewide/dkan_sitewide.info
Original file line number Diff line number Diff line change
@@ -2,26 +2,28 @@ name = DKAN Sitewide
description = Sitewide elements for DKAN.
core = 7.x
package = DKAN
version = beta1
project = dkan
php = 5.2.4
dependencies[] = ctools
version = 7.x-1.0
project = dkan_sitewide
dependencies[] = colorizer
dependencies[] = context
dependencies[] = features
dependencies[] = ctools
dependencies[] = dkan_dataset
dependencies[] = field_sql_storage
dependencies[] = dkan_dataset_content_types
dependencies[] = features
dependencies[] = filter
dependencies[] = node
dependencies[] = markdown
dependencies[] = restws
dependencies[] = strongarm
dependencies[] = text
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:1
features[field][] = node-page-body
features[features_api][] = api:2
features[field_instance][] = node-page-body
features[filter][] = html
features[node][] = page
features[variable][] = admin_theme
features[variable][] = bueditor_roles
features[variable][] = bueditor_user1
features[variable][] = colorizer_cssfile
features[variable][] = colorizer_incfile
features[variable][] = markdowneditor_buttons
features[variable][] = menu_options_page
features[variable][] = menu_parent_page
21 changes: 21 additions & 0 deletions modules/dkan/dkan_sitewide/dkan_sitewide.strongarm.inc
Original file line number Diff line number Diff line change
@@ -10,6 +10,13 @@
function dkan_sitewide_strongarm() {
$export = array();

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'admin_theme';
$strongarm->value = 'nuboot';
$export['admin_theme'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
@@ -39,6 +46,20 @@ function dkan_sitewide_strongarm() {
$strongarm->value = '5';
$export['bueditor_user1'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'colorizer_cssfile';
$strongarm->value = 'colorizer/colorizer.css';
$export['colorizer_cssfile'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'colorizer_incfile';
$strongarm->value = 'colorizer/colorizer.inc';
$export['colorizer_incfile'] = $strongarm;

$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;

0 comments on commit a069d80

Please sign in to comment.