Carrington Build Documentation

Suppressing Module Save

Modules can define wether they can be saved or not. If, for example, your module should only be modified by editors and higher, then you can use the `$suppress_save` member variable to control the appearance of the save button in the module admin. For example:

class my_build_module extends cfct_build_module {

	// ...

	public function admin_form($data) {
		// build admin form
		$html = '...';

		if (!current_user_can('edit_posts')) {
			$this->suppress_save = true;

		return $html;

	// ...

See also:

Back to Carrington Build

These sections are available to the public. The remaining sections are available exclusively to customers.