Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
d6d96a2e
Commit
d6d96a2e
authored
Jan 18, 2021
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom module
parent
a645fd63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
567 additions
and
0 deletions
+567
-0
dicindialtd.info.yml
modules/custom/dicindialtd/dicindialtd.info.yml
+9
-0
dicindialtd.module
modules/custom/dicindialtd/dicindialtd.module
+558
-0
No files found.
modules/custom/dicindialtd/dicindialtd.info.yml
0 → 100644
View file @
d6d96a2e
name
:
Custom Module
type
:
module
description
:
'
Provides
Custom
Module'
core
:
8.x
core_version_requirement
:
^8 || ^9
version
:
'
8.x-2.3'
project
:
'
slick_views'
datestamp
:
1589111337
modules/custom/dicindialtd/dicindialtd.module
0 → 100644
View file @
d6d96a2e
<?php
/* start dont remove this by akhil */
function
dicindialtd_term_authoring_info_presave
(
$term
){
//$term->uid = $term->original->uid;
$term
->
created
=
$term
->
original
->
created
;
}
/* end dont remove this by akhil */
function
dicindialtd_block_info
(){
$blocks
=
array
();
$blocks
[
'products_tabs'
]
=
array
(
'info'
=>
t
(
'Home : Product : Tabs'
));
$blocks
[
'current_openings_section'
]
=
array
(
'info'
=>
t
(
'Careers : Current Openings : Section'
));
$blocks
[
'contact_us_offices'
]
=
array
(
'info'
=>
t
(
'Contact Us : Offices : Section'
));
$blocks
[
'sitemap_menu_section'
]
=
array
(
'info'
=>
t
(
'Sitemap : Menu : Section'
));
$blocks
[
'corporate_news_and_announcements'
]
=
array
(
'info'
=>
t
(
'Investors : Corporate News Announcements : Section'
));
$blocks
[
'quaterly_report'
]
=
array
(
'info'
=>
t
(
'Investors : Quaterly Report : Section'
));
$blocks
[
'shareholding_pattern'
]
=
array
(
'info'
=>
t
(
'Investors : Shareholding Pattern : Section'
));
return
$blocks
;
}
///////
function
_taxonomy_get_term_name_by_id
(
$tid
)
{
$term_names
=
&
drupal_static
(
__FUNCTION__
);
if
(
!
$term_names
)
{
$term_names
=
array
();
}
elseif
(
isset
(
$term_names
[
$tid
]))
{
return
$term_names
[
$tid
];
}
$term_name
=
db_query
(
'SELECT name FROM {taxonomy_term_data} WHERE tid = :tid'
,
array
(
':tid'
=>
$tid
))
->
fetchField
();
if
(
$term_name
)
{
$term_names
[
$tid
]
=
$term_name
;
}
return
$term_name
;
}
function
_taxonomy_get_parent
(
$tid
){
$term_parents
=
&
drupal_static
(
__FUNCTION__
);
if
(
!
$term_parents
)
{
$term_parents
=
array
();
}
elseif
(
isset
(
$term_parents
[
$tid
]))
{
return
$term_parents
[
$tid
];
}
$term_parent
=
db_query
(
'SELECT parent FROM {taxonomy_term_hierarchy} WHERE tid = :tid'
,
array
(
':tid'
=>
$tid
))
->
fetchField
();
if
(
$term_parent
)
{
$term_parents
[
$tid
]
=
$term_parent
;
}
return
$term_parent
;
}
function
_block_corporate_news_and_announcements_view
(){
$select_year
=
_block_corporate_news_and_announcements_view_callback_year
();
//print_r($select_year);
$output_html
=
'<div class="year-select-box">
<select>'
;
if
(
isset
(
$select_year
)
&&
is_array
(
$select_year
)
&&
count
(
$select_year
)){
$i
=
1
;
//print_r($select_year);
foreach
(
$select_year
as
$year_key
=>
$year_name
){
//print_r($year_name);
$output_html
.=
'<option value="'
.
$year_name
.
'" class="tab-link" data-tab="tab-'
.
$year_name
.
'">'
.
$year_name
.
'</option>'
;
$i
++
;
}
}
$output_html
.=
'</select>
</div>'
;
if
(
isset
(
$select_year
)
&&
is_array
(
$select_year
)
&&
count
(
$select_year
)){
// $output_html .= '<div class="address-holder"><ul>';
// print_r($select_year);
foreach
(
$select_year
as
$year_key
=>
$year_name
){
$current_pdfs_list
=
_block_corporate_news_and_announcements_view_callback_pdfs
(
$year_name
,
16
);
//print_r($current_pdfs_list);
if
(
isset
(
$current_pdfs_list
)
&&
is_array
(
$current_pdfs_list
)
&&
count
(
$current_pdfs_list
)){
//print_r($current_pdfs_list);
$t
=
1
;
$output_html
.=
' <div class="corp-news tab-content" id="tab-'
.
$year_name
.
'"> '
;
foreach
(
$current_pdfs_list
as
$pdfs
){
//print_r($pdfs);
$output_html
.=
'
<div class="corp-news-grid">
<div class="month-cont">'
.
$pdfs
[
'month'
]
.
'</div>
<div class="report-cont">
<ul>'
;
$current_monthly_pdfs_list
=
_block_corporate_news_and_announcements_view_callback_monthly_pdfs
(
$year_name
,
$pdfs
[
'nmonth'
],
16
);
//print_r( $current_monthly_pdfs_list);
$m
=
1
;
foreach
(
$current_monthly_pdfs_list
as
$current_monthly_pdfs
)
{
$output_html
.=
' <li>
<div class="left-icon-holder"> <img src="sites/all/themes/dicindialtd/images/corp-gov-pdf-icon.png">
<div class="overlay"><a href="'
.
file_create_url
(
$current_monthly_pdfs
[
'field_pdf'
])
.
'" target="_blank">Click to Expand</a></div>
</div>
<div class="text-desc-cont">'
.
$current_monthly_pdfs
[
'name'
]
.
'</div>
</li>'
;
$m
++
;
}
$output_html
.=
' </ul>
</div>
</div>'
;
$t
++
;
}
$output_html
.=
'</div>'
;
}
}
}
return
$output_html
;
}
function
_block_corporate_news_and_announcements_view_callback_year
(){
$array_year
=
array
();
$vocabulary_year
=
taxonomy_vocabulary_machine_name_load
(
'year'
);
$tree_year
=
taxonomy_get_tree
(
$vocabulary_year
->
vid
,
$parent
=
0
,
$max_depth
=
1
,
$load_entities
=
TRUE
);
if
(
isset
(
$tree_year
)
&&
is_array
(
$tree_year
)
&&
count
(
$tree_year
)){
foreach
(
$tree_year
as
$year
){
//print_r($year);
//$array_year[$year->tid] = $year->name;
$array_year
[
$year
->
field_investor_year
[
'und'
][
0
][
'value'
]]
=
$year
->
name
;
//$array_year[$year->field_investor_year[und][0][value]] = $year->field_investor_year[und][0][value];
//echo $year->field_investor_year[und][0][value];
//$array_cities .= '<option value="'.$cities->tid.'" class="tab-link" data-tab="tab-'.$cities->tid.'">'.strtoupper($cities->name).'</option>';
}
}
return
$array_year
;
}
function
_block_corporate_news_and_announcements_view_callback_pdfs
(
$cyear
=
0
,
$cnews
=
16
){
$collectionArray
=
array
();
if
(
isset
(
$cyear
)
&&
intval
(
$cyear
)){
$queryNids
=
db_select
(
'node'
,
'n'
)
->
distinct
();
$queryNids
->
join
(
'field_data_field_uploaded_year'
,
'y'
,
'y.entity_id = n.nid AND y.revision_id = n.vid'
);
$queryNids
->
join
(
'field_data_field_category'
,
'c'
,
'c.entity_id = n.nid AND c.revision_id = n.vid'
);
$queryNids
->
condition
(
'y.entity_type'
,
'node'
)
->
condition
(
'y.bundle'
,
'investors'
);
$queryNids
->
where
(
'EXTRACT(YEAR FROM y.field_uploaded_year_value) = :year'
,
array
(
'year'
=>
$cyear
))
//$queryNids ->where("FROM_UNIXTIME(y.field_uploaded_year_value, '%Y') = :date", array(':date' => $cyear))
//->condition('y.field_year_value', $cyear)
->
condition
(
'c.field_category_tid'
,
$cnews
);
//->condition('y.field_year_value', array('FROM_UNIXTIME(y.field_year_value, "%Y")'), $cyear);
//->condition('FROM_UNIXTIME(y.field_year_value, "%Y")', $cyear);
//$queryNids->addExpression('FROM_UNIXTIME(y.field_year_value, "%Y")', $cyear);
$queryNids
->
fields
(
'n'
,
array
(
'nid'
))
->
condition
(
'n.status'
,
1
)
->
condition
(
'n.type'
,
'investors'
)
->
orderBy
(
'n.created'
,
'ASC'
);
//echo $queryNids."<br/>";
$results
=
$queryNids
->
execute
()
->
fetchCol
();
/* while($record = $results->fetchAssoc()) {
print_r($record);
}*/
// print_r($results);
// echo count($results);
//
if
(
is_array
(
$results
)
&&
count
(
$results
)){
$nodes
=
node_load_multiple
(
$results
);
if
(
is_array
(
$nodes
)
&&
count
(
$nodes
)){
$dis_month
=
''
;
foreach
(
$nodes
as
$nodeKey
=>
$nodeValue
){
// print_r($nodeValue);
if
(
$dis_month
!=
date
(
"F"
,
strtotime
(
$nodeValue
->
field_uploaded_year
[
'und'
][
0
][
'value'
])))
{
$dis_month
=
date
(
"F"
,
strtotime
(
$nodeValue
->
field_uploaded_year
[
'und'
][
0
][
'value'
]));
$num_month
=
date
(
"m"
,
strtotime
(
$nodeValue
->
field_uploaded_year
[
'und'
][
0
][
'value'
]));
//echo $dis_month;
$outputArray
=
array
();
$outputArray
[
'id'
]
=
$nodeValue
->
nid
;
$outputArray
[
'name'
]
=
$nodeValue
->
title
;
if
(
isset
(
$nodeValue
->
field_pdf
[
'und'
][
'0'
][
'uri'
])){
$outputArray
[
'field_pdf'
]
=
$nodeValue
->
field_pdf
[
'und'
][
'0'
][
'uri'
];
}
else
{
$outputArray
[
'field_pdf'
]
=
$nodeValue
->
field_external_link
[
'und'
][
'0'
][
'value'
];;
}
//$outputArray['field_pdf'] = $nodeValue->field_pdf['und'][0]['uri'];
$outputArray
[
'field_year'
]
=
(
isset
(
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
])
?
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
]
:
''
);
$outputArray
[
'month'
]
=
$dis_month
;
$outputArray
[
'nmonth'
]
=
$num_month
;
array_push
(
$collectionArray
,
$outputArray
);
}
}
}
}
}
return
$collectionArray
;
}
function
_block_corporate_news_and_announcements_view_callback_monthly_pdfs
(
$cyear
=
0
,
$cmonth
=
0
,
$cnews
=
16
){
//echo $cyear.','.$cmonth.','.$cnews;
$collectionArray
=
array
();
if
(
isset
(
$cyear
)
&&
intval
(
$cyear
)){
$queryNids
=
db_select
(
'node'
,
'n'
)
->
distinct
();
$queryNids
->
join
(
'field_data_field_uploaded_year'
,
'y'
,
'y.entity_id = n.nid AND y.revision_id = n.vid'
);
$queryNids
->
join
(
'field_data_field_category'
,
'c'
,
'c.entity_id = n.nid AND c.revision_id = n.vid'
);
$queryNids
->
condition
(
'y.entity_type'
,
'node'
)
->
condition
(
'y.bundle'
,
'investors'
);
$queryNids
->
where
(
'EXTRACT(YEAR FROM y.field_uploaded_year_value) = :year'
,
array
(
'year'
=>
$cyear
));
$queryNids
->
where
(
'EXTRACT(MONTH FROM y.field_uploaded_year_value) = :month'
,
array
(
'month'
=>
$cmonth
));
$queryNids
->
condition
(
'c.field_category_tid'
,
$cnews
);
$queryNids
->
fields
(
'n'
,
array
(
'nid'
))
->
condition
(
'n.status'
,
1
)
->
condition
(
'n.type'
,
'investors'
)
->
orderBy
(
'n.created'
,
'ASC'
);
$results
=
$queryNids
->
execute
()
->
fetchCol
();
if
(
is_array
(
$results
)
&&
count
(
$results
)){
$nodes
=
node_load_multiple
(
$results
);
if
(
is_array
(
$nodes
)
&&
count
(
$nodes
)){
foreach
(
$nodes
as
$nodeKey
=>
$nodeValue
){
// print_r($nodeValue);
$dis_month
=
date
(
"F"
,
strtotime
(
$nodeValue
->
field_uploaded_year
[
'und'
][
0
][
'value'
]));
//echo $dis_month;
$outputArray
=
array
();
$outputArray
[
'id'
]
=
$nodeValue
->
nid
;
$outputArray
[
'name'
]
=
$nodeValue
->
title
;
if
(
isset
(
$nodeValue
->
field_pdf
[
'und'
][
'0'
][
'uri'
])){
$outputArray
[
'field_pdf'
]
=
$nodeValue
->
field_pdf
[
'und'
][
'0'
][
'uri'
];
}
else
{
$outputArray
[
'field_pdf'
]
=
$nodeValue
->
field_external_link
[
'und'
][
'0'
][
'value'
];;
}
//$outputArray['field_pdf'] = $nodeValue->field_pdf['und'][0]['uri'];
$outputArray
[
'field_year'
]
=
(
isset
(
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
])
?
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
]
:
''
);
$outputArray
[
'month'
]
=
$dis_month
;
array_push
(
$collectionArray
,
$outputArray
);
}
}
}
}
return
$collectionArray
;
}
function
_block_quaterly_report_view
(){
$select_year
=
_block_corporate_news_and_announcements_view_callback_year
();
//print_r($select_year);
$output_html
=
'<div class="year-select-box">
<select>'
;
if
(
isset
(
$select_year
)
&&
is_array
(
$select_year
)
&&
count
(
$select_year
)){
$i
=
1
;
//print_r($select_year);
foreach
(
$select_year
as
$year_key
=>
$year_name
){
//print_r($year_name);
$output_html
.=
'<option value="'
.
$year_name
.
'" class="tab-link" data-tab="tab-'
.
$year_name
.
'">'
.
$year_name
.
'</option>'
;
$i
++
;
}
}
$output_html
.=
'</select>
</div>'
;
if
(
isset
(
$select_year
)
&&
is_array
(
$select_year
)
&&
count
(
$select_year
)){
// $output_html .= '<div class="address-holder"><ul>';
// print_r($select_year);
foreach
(
$select_year
as
$year_key
=>
$year_name
){
$current_pdfs_list
=
_block_quaterly_report_view_callback_pdfs
(
$year_name
,
14
);
// print_r($current_pdfs_list);
// echo count($current_pdfs_list);
if
(
isset
(
$current_pdfs_list
)
&&
is_array
(
$current_pdfs_list
)
&&
count
(
$current_pdfs_list
)){
//print_r($current_pdfs_list);
$t
=
1
;
$output_html
.=
' <div class="quterly-result-gtid tab-content" id="tab-'
.
$year_name
.
'"> '
;
foreach
(
$current_pdfs_list
as
$pdfs
){
//print_r($pdfs);
$output_html
.=
'
<div class="grid-col">
<div class="wrap">
<div class="heading">QUARTER '
.
$t
.
'</div>
<div class="left-icon-holder"> <img src="sites/all/themes/dicindialtd/images/corp-gov-pdf-icon.png">
<div class="overlay"><a href="'
.
file_create_url
(
$pdfs
[
'field_pdf'
])
.
'" target="_blank">Click to Expand</a></div>
</div>
<div class="text-desc-cont">'
.
$pdfs
[
'name'
]
.
'</div>
</div>
</div>'
;
$t
++
;
}
$output_html
.=
'</div>'
;
}
}
}
return
$output_html
;
}
function
_block_quaterly_report_view_callback_pdfs
(
$cyear
=
0
,
$cnews
=
14
){
$collectionArray
=
array
();
if
(
isset
(
$cyear
)
&&
intval
(
$cyear
)){
$queryNids
=
db_select
(
'node'
,
'n'
);
//$queryNids->join('field_data_field_year', 'y', 'y.entity_id = n.nid AND y.revision_id = n.vid');
$queryNids
->
join
(
'field_data_field_year'
,
'y'
,
'y.entity_id = n.nid AND y.revision_id = n.vid'
);
$queryNids
->
join
(
'field_data_field_category'
,
'c'
,
'c.entity_id = n.nid AND c.revision_id = n.vid'
);
$queryNids
->
condition
(
'y.entity_type'
,
'node'
)
->
condition
(
'y.bundle'
,
'investors'
);
$queryNids
->
where
(
'EXTRACT(YEAR FROM y.field_year_value) = :year'
,
array
(
'year'
=>
$cyear
))
// $queryNids ->where("FROM_UNIXTIME(y.field_year_value, '%Y') = :date", array(':date' => $cyear))
->
condition
(
'c.field_category_tid'
,
$cnews
);
$queryNids
->
fields
(
'n'
,
array
(
'nid'
))
->
condition
(
'n.status'
,
1
)
->
condition
(
'n.type'
,
'investors'
)
->
orderBy
(
'n.created'
,
'ASC'
);
//echo $queryNids;
$results
=
$queryNids
->
execute
()
->
fetchCol
();
if
(
is_array
(
$results
)
&&
count
(
$results
)){
$nodes
=
node_load_multiple
(
$results
);
if
(
is_array
(
$nodes
)
&&
count
(
$nodes
)){
//print_r($nodes);
foreach
(
$nodes
as
$nodeKey
=>
$nodeValue
){
//$dis_month = date('F',(isset($nodeValue->field_year['und'][0]['value']) ? $nodeValue->field_year['und'][0]['value']:''));
$dis_month
=
date
(
"F"
,
strtotime
(
$nodeValue
->
field_uploaded_year
[
'und'
][
0
][
'value'
]));
$outputArray
=
array
();
$outputArray
[
'id'
]
=
$nodeValue
->
nid
;
$outputArray
[
'name'
]
=
$nodeValue
->
title
;
$outputArray
[
'field_pdf'
]
=
$nodeValue
->
field_pdf
[
'und'
][
0
][
'uri'
];
$outputArray
[
'field_year'
]
=
(
isset
(
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
])
?
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
]
:
''
);
$outputArray
[
'month'
]
=
$dis_month
;
array_push
(
$collectionArray
,
$outputArray
);
}
}
}
}
return
$collectionArray
;
}
function
_block_shareholding_pattern_view
(){
$select_year
=
_block_corporate_news_and_announcements_view_callback_year
();
//print_r($select_year);
$output_html
=
'<div class="year-select-box">
<select>'
;
if
(
isset
(
$select_year
)
&&
is_array
(
$select_year
)
&&
count
(
$select_year
)){
$i
=
1
;
//print_r($select_year);
foreach
(
$select_year
as
$year_key
=>
$year_name
){
//print_r($year_name);
$current_pdfs_list
=
_block_shareholding_pattern_view_callback_pdfs
(
$year_name
,
18
);
if
(
isset
(
$current_pdfs_list
)
&&
is_array
(
$current_pdfs_list
)
&&
count
(
$current_pdfs_list
)){
$output_html
.=
'<option value="'
.
$year_name
.
'" class="tab-link" data-tab="tab-'
.
$year_name
.
'">'
.
$year_name
.
'</option>'
;
$i
++
;
}
}
}
$output_html
.=
'</select>
</div>'
;
if
(
isset
(
$select_year
)
&&
is_array
(
$select_year
)
&&
count
(
$select_year
)){
// $output_html .= '<div class="address-holder"><ul>';
//print_r($select_year);
foreach
(
$select_year
as
$year_key
=>
$year_name
){
$current_pdfs_list
=
_block_shareholding_pattern_view_callback_pdfs
(
$year_name
,
18
);
// print_r($current_pdfs_list);
if
(
isset
(
$current_pdfs_list
)
&&
is_array
(
$current_pdfs_list
)
&&
count
(
$current_pdfs_list
)){
//print_r($current_pdfs_list);
$t
=
1
;
$output_html
.=
' <div class="quterly-result-gtid tab-content" id="tab-'
.
$year_name
.
'"> '
;
foreach
(
$current_pdfs_list
as
$pdfs
){
//print_r($pdfs);
$output_html
.=
'
<div class="grid-col">
<div class="wrap">
<div class="heading">QUARTER '
.
$t
.
'</div>
<div class="left-icon-holder"> <img src="sites/all/themes/dicindialtd/images/corp-gov-pdf-icon.png">
<div class="overlay"><a href="'
.
file_create_url
(
$pdfs
[
'field_pdf'
])
.
'" target="_blank">Click to Expand</a></div>
</div>
<div class="text-desc-cont">'
.
$pdfs
[
'name'
]
.
'</div>
</div>
</div>'
;
$t
++
;
}
$output_html
.=
'</div>'
;
}
}
}
return
$output_html
;
}
function
_block_shareholding_pattern_view_callback_pdfs
(
$cyear
=
0
,
$cnews
=
18
){
$collectionArray
=
array
();
if
(
isset
(
$cyear
)
&&
intval
(
$cyear
)){
$queryNids
=
db_select
(
'node'
,
'n'
);
//$queryNids->join('field_data_field_year', 'y', 'y.entity_id = n.nid AND y.revision_id = n.vid');
$queryNids
->
join
(
'field_data_field_uploaded_year'
,
'y'
,
'y.entity_id = n.nid AND y.revision_id = n.vid'
);
$queryNids
->
join
(
'field_data_field_category'
,
'c'
,
'c.entity_id = n.nid AND c.revision_id = n.vid'
);
$queryNids
->
condition
(
'y.entity_type'
,
'node'
)
->
condition
(
'y.bundle'
,
'investors'
);
$queryNids
->
where
(
'EXTRACT(YEAR FROM y.field_uploaded_year_value) = :year'
,
array
(
'year'
=>
$cyear
))
// $queryNids ->where("FROM_UNIXTIME(y.field_year_value, '%Y') = :date", array(':date' => $cyear))
->
condition
(
'c.field_category_tid'
,
$cnews
);
$queryNids
->
fields
(
'n'
,
array
(
'nid'
))
->
condition
(
'n.status'
,
1
)
->
condition
(
'n.type'
,
'investors'
)
->
orderBy
(
'n.created'
,
'ASC'
);
//echo $queryNids;
$results
=
$queryNids
->
execute
()
->
fetchCol
();
if
(
is_array
(
$results
)
&&
count
(
$results
)){
$nodes
=
node_load_multiple
(
$results
);
if
(
is_array
(
$nodes
)
&&
count
(
$nodes
)){
//print_r($nodes);
foreach
(
$nodes
as
$nodeKey
=>
$nodeValue
){
// $dis_month = date('F',(isset($nodeValue->field_year['und'][0]['value']) ? $nodeValue->field_year['und'][0]['value']:''));
$dis_month
=
date
(
"F"
,
strtotime
(
$nodeValue
->
field_uploaded_year
[
'und'
][
0
][
'value'
]));
$outputArray
=
array
();
$outputArray
[
'id'
]
=
$nodeValue
->
nid
;
$outputArray
[
'name'
]
=
$nodeValue
->
title
;
$outputArray
[
'field_pdf'
]
=
$nodeValue
->
field_pdf
[
'und'
][
0
][
'uri'
];
$outputArray
[
'field_year'
]
=
(
isset
(
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
])
?
$nodeValue
->
field_year
[
'und'
][
0
][
'value'
]
:
''
);
$outputArray
[
'month'
]
=
$dis_month
;
array_push
(
$collectionArray
,
$outputArray
);
}
}
}
}
return
$collectionArray
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment