protected function getFieldActions($element)
	{
		// Initialise variables.
		$actions = array();

		// Initialise some field attributes.
		$section   = $element['section']   ? (string) $element['section']   : '';
		$component = $element['component'] ? (string) $element['component'] : '';

		// Get the asset actions for the element.
		$component = $component ? \App::get('component')->path($component) . '/config/access.xml' : '';
		$section   = $section ? "/access/section[@name='" . $section . "']/" : '';

		$elActions = Access::getActionsFromFile($component, $section);

		if (is_array($elActions))
		{
			// Iterate over the asset actions and add to the actions.
			foreach ($elActions as $item)
			{
				$actions[] = $item->name;
			}
		}

		// Iterate over the children and add to the actions.
		foreach ($element->children() as $el)
		{
			if ($el->getName() == 'action')
			{
				$actions[] = (string) $el['name'];
			}
		}

		return $actions;
	}