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 2777 to 2785

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 21st May 2024 10:35 Europe/London time based on the source file dated 17th May 2024 16:45 Europe/London time.