Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

renderLockButton()

Parameters

ColumnTypeDefaultDescription
$name
$locked_fields array

Location

include/render_functions.php lines 2776 to 2784

Definition

 
function renderLockButton($name$locked_fields=array())
    {
    global 
$lang;
    
?>
    <button type="submit" class="lock_icon" id="lock_icon_ echo escape($name) ; ?>" onClick="toggleFieldLock(' echo escape($name) ; ?>');return false;" title=" echo escape($lang['lock-tooltip']); ?>">
        <i aria-hidden="true" class="fa  if(in_array($name,$locked_fields)){echo "fa-lock";} else {echo "fa-unlock";} ?> fa-fw"></i>
    </button>
        
    
}

This article was last updated 25th April 2024 21:35 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.