Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added session related pages #3

Open
wants to merge 1 commit into
base: DCP-2015
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ class CodEventTime extends Entity {
public function getTimeLabel($type = 'cod_time') {
$date_field1 = $this->field_evttime_date[LANGUAGE_NONE][0]['value'];
$date_field1 = new DateTime($date_field1);
$date_field1 = format_date(($date_field1->getTimestamp() + $this->field_evttime_date[LANGUAGE_NONE][0]['offset']), $type);
// $date_field1 = format_date(($date_field1->getTimestamp() + $this->field_evttime_date[LANGUAGE_NONE][0]['offset']), $type);
$date_field1 = format_date($date_field1->getTimestamp(), $type);

$date_field2 = $this->field_evttime_date[LANGUAGE_NONE][0]['value2'];
$date_field2 = new DateTime($date_field2);
$date_field2 = format_date(($date_field2->getTimestamp() + $this->field_evttime_date[LANGUAGE_NONE][0]['offset2']), $type);
// $date_field2 = format_date(($date_field2->getTimestamp() + $this->field_evttime_date[LANGUAGE_NONE][0]['offset2']), $type);
$date_field2 = format_date($date_field2->getTimestamp(), $type);

return $date_field1 . '-' . $date_field2;
}
Expand Down
7 changes: 7 additions & 0 deletions sites/all/modules/dcp/dcp_sessions/dcp_sessions.features.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ function dcp_sessions_ctools_plugin_api($module = NULL, $api = NULL) {
return array("version" => "1");
}
}

/**
* Implements hook_views_api().
*/
function dcp_sessions_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
7 changes: 7 additions & 0 deletions sites/all/modules/dcp/dcp_sessions/dcp_sessions.info
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ project = dcp_sessions
dependencies[] = ctools
dependencies[] = page_manager
dependencies[] = snippet
dependencies[] = views
dependencies[] = views_content
features[ctools][] = page_manager:pages_default:1
features[ctools][] = snippet:default_snippet:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[page_manager_pages][] = dcp_schedule_page
features[page_manager_pages][] = propose_a_session
features[page_manager_pages][] = sessions_accepted
features[page_manager_pages][] = sessions_proposed
features[snippet][] = call_for_papers_description
features[views_view][] = all_sessions
project path = sites/all/modules/dcp/
Loading