Skip to content

Commit f772511

Browse files
author
Aaron McGowan
committed
Merge pull request #14 from amcgowanca/7.x-1.x
Updated contributed modules, added Date API default time for scheduler.
2 parents 7b4ca35 + d8e4696 commit f772511

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

drupal-org.make

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ projects[entity][subdir] = "contrib"
99
projects[entity][version] = "1.1"
1010
projects[rules][type] = "module"
1111
projects[rules][subdir] = "contrib"
12-
projects[rules][version] = "2.3"
12+
projects[rules][version] = "2.6"
1313
projects[scheduler][type] = "module"
1414
projects[scheduler][subdir] = "contrib"
15-
projects[scheduler][version] = "1.1"
15+
projects[scheduler][version] = "1.2"
1616
projects[strongarm][type] = "module"
1717
projects[strongarm][subdir] = "contrib"
1818
projects[strongarm][version] = "2.0"
@@ -31,6 +31,7 @@ projects[workbench_moderation][version] = "1.3"
3131
projects[workbench_moderation][subdir] = "contrib"
3232
projects[workbench_moderation][patch][] = "https://raw.github.com/imagex/imagex_patches/7.x/contrib/workbench_moderation/1314508-workbench-moderation-features.patch"
3333
projects[workbench_moderation][patch][] = "https://raw.github.com/imagex/imagex_patches/7.x/contrib/workbench_moderation/workbench_moderation-entitymalformed-1919706-3.patch"
34+
projects[workbench_moderation][patch][] = "https://raw2.github.com/imagex/imagex_patches/7.x/contrib/workbench_moderation/workbench_moderation-normalize-workbench_moderation-element-of-node-on-update.patch"
3435
projects[workbench_moderation_notes][type] = "module"
3536
projects[workbench_moderation_notes][version] = "1.x-dev"
3637
projects[workbench_moderation_notes][subdir] = "contrib"

imagex_workflow.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = Workflow
22
description = This component enables content moderation and workflow by leveraging the Workbench Suite of Modules.
33
core = 7.x
44
package = ImageX
5-
version = 7.x-1.0
5+
version = 7.x-1.x
66
project = imagex_workflow
77
dependencies[] = ctools
88
dependencies[] = entity

imagex_workflow.module

+16
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,19 @@ include_once 'imagex_workflow.features.inc';
1212
// presents a warning due to `$defaults` equalling false.
1313
include_once 'imagex_workflow.features.workbench_moderation_states.inc';
1414
include_once 'imagex_workflow.features.workbench_moderation_transitions.inc';
15+
16+
/**
17+
* Implements hook_date_popup_pre_validate_alter().
18+
*
19+
* Assists in providing a default time for scheduler's publish_on and unpublish_on
20+
* fields should only a date be presented. The date_popup api will present a form error
21+
* should only the date be present and not the time during validation.
22+
*/
23+
function imagex_workflow_date_popup_pre_validate_alter(&$element, &$form_state, &$input) {
24+
if (in_array($element['#name'], array('publish_on', 'unpublish_on')) && isset($form_state['values'][$element['#name']])) {
25+
if (!empty($form_state['values'][$element['#name']]['date']) && empty($form_state['values'][$element['#name']]['time'])) {
26+
$form_state['values'][$element['#name']]['time'] = '00:00:00';
27+
}
28+
$input = $form_state['values'][$element['#name']];
29+
}
30+
}

modules/imagex_workflow_notifications/imagex_workflow_notifications.info

-8
This file was deleted.

modules/imagex_workflow_notifications/imagex_workflow_notifications.module

-5
This file was deleted.

0 commit comments

Comments
 (0)