Revision b03fb28d
Added by Andreas Kohlbecker almost 3 years ago
modules/cdm_dataportal/ext_links/ext_links.admin.inc | ||
---|---|---|
197 | 197 |
drupal_goto('admin/config/cdm_dataportal/ext_links'); |
198 | 198 |
} |
199 | 199 |
|
200 |
/** |
|
201 |
* Sets the status of a link_template. |
|
202 |
* |
|
203 |
* Used as page callback in menu items. |
|
204 |
* |
|
205 |
* @param $link_template |
|
206 |
* The link template |
|
207 |
* @param $status |
|
208 |
* The status value to set (values: 1 or 0) |
|
209 |
*/ |
|
210 |
function ext_links_admin_link_template_set_status($link_template, $status){ |
|
211 |
$link_template->status = $status === 1 ? 1 : 0; |
|
212 |
ext_links_save($link_template); |
|
213 |
drupal_goto("admin/config/cdm_dataportal/ext_links"); |
|
214 |
} |
|
215 |
|
|
200 | 216 |
/** |
201 | 217 |
* Returns HTML for the text format administration overview form. |
202 | 218 |
* |
Also available in: Unified diff
ref #9659 ext_links enable/disable operation