|
|
@ -740,12 +740,15 @@ function islandora_get_content_models($ignore_system_namespace = TRUE) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns Drupal tableselect element allowing selection of one or more Content Models |
|
|
|
* Returns Drupal tableselect element allowing selection of Content Models. |
|
|
|
* Primarily useful for Admin screens |
|
|
|
* |
|
|
|
* @param string $drupal_variable |
|
|
|
* @param string $drupal_variable |
|
|
|
* the name of the Drupal variable holding selected content models |
|
|
|
* the name of the Drupal variable holding selected content models |
|
|
|
* Content models held in this variable will appear at the top of the displyed list |
|
|
|
* Content models held in this variable will appear at the top of |
|
|
|
* @return array Drupal form element allowing content model selection |
|
|
|
* the displayed list |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @return array |
|
|
|
|
|
|
|
* Drupal form element allowing content model selection |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_content_model_select_table_form_element($drupal_variable) { |
|
|
|
function islandora_content_model_select_table_form_element($drupal_variable) { |
|
|
|
$connection = islandora_get_tuque_connection(); |
|
|
|
$connection = islandora_get_tuque_connection(); |
|
|
@ -773,7 +776,7 @@ function islandora_content_model_select_table_form_element($drupal_variable) { |
|
|
|
'pid' => array('data' => t('PID')), |
|
|
|
'pid' => array('data' => t('PID')), |
|
|
|
'title' => array('data' => t('Content Model')), |
|
|
|
'title' => array('data' => t('Content Model')), |
|
|
|
); |
|
|
|
); |
|
|
|
//build and return table element |
|
|
|
// Build and return table element. |
|
|
|
$element = array( |
|
|
|
$element = array( |
|
|
|
'#type' => 'tableselect', |
|
|
|
'#type' => 'tableselect', |
|
|
|
'#header' => $header, |
|
|
|
'#header' => $header, |
|
|
@ -782,4 +785,4 @@ function islandora_content_model_select_table_form_element($drupal_variable) { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return $element; |
|
|
|
return $element; |
|
|
|
} |
|
|
|
} |
|
|
|