function globallink_get_pd_projects in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink.inc \globallink_get_pd_projects()
- 7.5 globallink.inc \globallink_get_pd_projects()
Gets project director projects.
Return value
array Array of project director projects.
9 calls to globallink_get_pd_projects()
- globallink_beans_active_form in globallink_beans/
globallink_beans_active_submissions.inc - Builds form to show all active beans submissions.
- globallink_block_active_form in globallink_block/
globallink_block_active_submissions.inc - Builds form to show all active block submissions.
- globallink_dashboard_active in ./
globallink_active_submissions.inc - Builds form to show all active GlobalLink submissions.
- globallink_entity_active_form in globallink_entity/
globallink_entity_active_submissions.inc - Builds form to show all active entity submissions.
- globallink_fieldable_panels_active_form in globallink_fieldable_panels/
globallink_fieldable_panels_active_submissions.inc - Builds form to show all active fieldable panels submissions.
File
- ./
globallink.inc, line 1147 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_get_pd_projects() {
$proj_arr = variable_get('globallink_pd_projects', array());
if (count($proj_arr) == 0) {
return;
}
$projects = variable_get('globallink_pd_projectid');
if (empty($projects)) {
return;
}
$arr = explode(',', $projects);
foreach ($arr as $value) {
if (isset($proj_arr[$value])) {
$proj_arr[$value] = $proj_arr[$value];
}
else {
$proj_arr[$value] = $value;
}
}
return $proj_arr;
}