function theme_encrypt_admin_list in Encrypt 6
Same name and namespace in other branches
- 7 includes/encrypt.theme.inc \theme_encrypt_admin_list()
Theme function admin method listing
This function themes the list of methods for the admin view.
Parameters
$methods: Array of methods
Return value
Array of similar put themed titles
1 theme call to theme_encrypt_admin_list()
- encrypt_admin_settings in includes/
encrypt.admin.inc - Menu callback; displays the encrypt module settings page.
File
- includes/
encrypt.theme.inc, line 20 - This file holds the theme functions for encrypt module
Code
function theme_encrypt_admin_list($methods = array()) {
$output = array();
// Check methods
if (!is_array($methods)) {
return $output;
}
// Go through methods
foreach ($methods as $name => $method) {
$output[$name] = '
<span class="encrypt-admin-list-item">
<span class="encrypt-admin-list-item-label">' . $method['title'] . '</span> -
<span class="encrypt-admin-list-item-description">
' . $method['description'] . '
</span>
</span>
';
}
return $output;
}