Skip to content

Commit

Permalink
Added enable and disable methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brucespang committed Sep 26, 2010
1 parent faec97d commit 8e5b888
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion frank/library.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,25 @@ function set($options){
foreach($options as $option => $value)
settings::set($option, $value);
}


/**
* Sets a setting to true
*
* @param string $setting Name of setting
*/
function enable($setting){
settings::set($setting, true);
}

/**
* Sets a setting to false
*
* @param string $setting Name of setting
*/
function disable($setting){
settings::set($setting, false);
}

/**
* API for adding a template function
*
Expand Down

0 comments on commit 8e5b888

Please sign in to comment.